WhileTest1.java



public class WhileTest1 {

    public static void main( String[] args ) {

        System.out.println( "into the loop" );
        int count = 0;
        while( count < 10 ) {

            System.out.println( "in the loop:" + count );
            count++;
        }
        System.out.println( "outof the loop" );
    }
}