WhileTest4.java



public class WhileTest4 {

    public static void main( String[] args ) {

        double x;
        do {
            x = Math.random();
            System.out.println( "x=" + x );
        }
        while( x < 0.9 );

        System.out.println( "outof the loop" );
    }
}