public class infinite { public static void main(String[] args) { int i =1; while(true){ System.out.println(i++); } } }