Name: Anonymous 2016-07-06 10:14
Hello sirs im using the list Java and I am using the iterating collection to do the work with the list Why code is the infinity?
int i = 0;
int j = 0;
List<Integer> li = new ArrayList<Integer>();
for (i = 0; i < 10; i++) {
li.add(i);
}
do {
System.out.println(li.get(j));
} while(j < li.size());
int i = 0;
int j = 0;
List<Integer> li = new ArrayList<Integer>();
for (i = 0; i < 10; i++) {
li.add(i);
}
do {
System.out.println(li.get(j));
} while(j < li.size());