dowhile Repetition Statement

// Fig. 5.7: DoWhileTest.java
// do...while repetition statement.

public class DoWhileTest 
{  
   public static void main( String[] args )
   {
      int counter = 1; // initialize counter

      do 
      {
         System.out.printf( "%d  ", counter );
         ++counter;
      } while ( counter <= 10 ); // end do...while 

      System.out.println(); // outputs a newline
   } // end main
} // end class DoWhileTest

The loop-continuation condition is not evaluated until after the loop performs the action state at least once.

do
{
  
statement
} while ( condition );

Click here for additional information.