int idx = 0; for (Object obj : list) { System.out.println("[" + idx + "] " + obj.toString()); idx++; }
int idx = 0; for (Number num : list) { System.out.println("[" + idx + "] " + num.intValue()); idx++; }