Can a for loop be written in Java to create an infinite loop or is it only while loops that cause that problem?
for(;;){}
is same as
while(true){}