code java loop infinito code example Example: how to do infinte loop in java for(;;){ //do something }