Hello,
I want to make a loop and print until the value of the num is under 15, what is wrong with the below please as I cannot take the value of variable num to the loop method;
[/CODE]Code:public class class3 {
public static void main(String args[]){
int num = 10;
if (num < 15);
num ++;
loop();
}
public static void loop(String args[]){
if (num < 15);
System.out.println(num);
num ++[CODE]

