Schreiben Sie eine unendliche Java
while(true) {
//do whatever
}
Tame Tarantula
while(true) {
//do whatever
}
// 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");
}
}
}
class Main {
public static void main(String args[]){
for(int i=1; i>=1; i++){
System.out.println("The value of i is: "+i);
}
}
}