java for schleife code example Example: java for schleife for(int i = 0; i<10; i++) { System.out.println(i); }