Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java Infinite for Loop

// Infinite for Loop

class Infinite {
    public static void main(String[] args) {
      
        int sum = 0;

        for (int i = 1; i <= 10; --i) {
            System.out.println("Hello");
        }
    }
}
 
PREVIOUS NEXT
Tagged: #Java #Infinite #Loop
ADD COMMENT
Topic
Name
3+9 =