public class While {
public static void main(String args[]){
}
public void printLoop(){
int counter = 1;
while(counter <=25){
System.out.println(counter);
counter++;
}
}
}
Hi, the above code compiles but nothing runs when I click on the run button. I am new to Java, you guys might find this problem easy to solve. Thanks.