int value = 0;
for (int i = from; i <= to; i++) {
Class<?> bigClass = Class.forName(
"com.android.framework.multidexlegacytestservices.manymethods.Big0" + i);
Method get = bigClass.getMethod("get" + i);
value += ((Integer) get.invoke(bigClass.newInstance())).intValue();
try {
Thread.sleep(sleepMillis);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
return value;