|
|
Re: While loop
|
Posted: May 30, 2006 11:53 PM
|
|
Probably wait for KeyBoard Input
E.g:
// Note: There is a log of Pseudo-Code so fill-in the blanks
// Also things like Object should be declared the Actual
// Object in your collection (Especially if you are using
// java5 and Generics...
int count = 0;
while(someBagOrCollection.hasNext()){
Object someVal = list.getElement();
if(count == X){ // where X is some number
//WaitForKeyBoardInput Google Code For this
}else{
System.out.println("Val At: "+count+"="+someVal);
}
}
|
|