Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

why inifinity code

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());

Name: Anonymous 2016-07-06 20:07

>>6
Sir i tested your code but have the infinity problem Can you give me the working code?
thank you sir

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List