java forever loop code example
Example 1: how to do infinte loop in java
for(;;){
//do something
}
Example 2: write an infinite loop java
while(true) {
//do whatever
}
for(;;){
//do something
}
while(true) {
//do whatever
}