LoopBreak1.java



public class LoopBreak1 {

    public static void main( String[] args ) {

        int i = 0;
        int x = 1;
        while( true ) {

              if( x > 1000000 )
                  break;

              x *= 2;
              i++;
        }
        System.out.println( "2**" + i + ">1000000" );
    }
}