Given we do not know what the original poster truly needs due to lack of information, I can't see why a while loop would be better than any other loop. Lack of information shouldn't necessitate...
Type: Posts; User: copeg
Given we do not know what the original poster truly needs due to lack of information, I can't see why a while loop would be better than any other loop. Lack of information shouldn't necessitate...
Do you know how to write loops?
Control Flow Statements (The Java™ Tutorials > Learning the Java Language > Language Basics)