I've been researching this for a while but can't seem to figure out why this loop doesn't terminate.
public class Test{
public static void main (String [] args){
for (int i = 11; i > 10; i++){
System.out.println(i);}
}
}
The variable is initialized at a value that meets the requirements for the loop to terminate, so shouldn't there be no output whatsoever?
Sorry if this is a noob question but I can't seem to find the answer from searching (or maybe im just not wording the quesiton appropriately when i search)
The loop just keeps executing until I press ctrl+c.
Thanks in advance.