Challenge for Scope
Challenge
What will the following method print?
public void printNum(){
int i = 0;
while(i<5){
i = i + 1;
}
System.out.println(i);
}
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.