public int callBack() {
- /*int sum = 0;
+ int sum = 0;
for (CallBackInterface cb : cblist) {
sum = sum + cb.printInt();
}
- */
- final CallBackInterface cb1 = cblist.get(1);
+
+ /*final CallBackInterface cb1 = cblist.get(1);
final CallBackInterface cb2 = cblist.get(2);
Thread thread1 = new Thread() {
}
}
};
- thread2.start();
+ thread2.start();*/
- return 1;
+ //return 1;
+ return sum;
}