Practise 2 - question about loop
Submitted by nobita on Thu, 10/22/2009 - 12:49.
class Woo {
public static void main(String[ ] args) {
int w = 1;
do while ( w < 1 )
System.out.print( "w is " + w );
while ( w > 1 ) ;
} }
can you explain to me? I searched and have just found the structure about " do { } while(expression); " and here, there's no part "while (expression);" of the do sentence.
Thanks in advance.
04. do { 05. while ( w < 1 ) 06. System.out.print( "w is " + w ); 07. } while ( w > 1 ) ; 08. } 09. }HTHThank you so much. It's so tricky.