Crossposted: writing a program to read a specific amount of lines from a file? - Java Forums
Type: Posts; User: KevinWorkman
Crossposted: writing a program to read a specific amount of lines from a file? - Java Forums
If I want to do something let's say 10 times, there are a few different ways:
for(int i = 0; i < 10; i++){
//do something
}
int i = 0;
while(i < 10){
What have you tried?