I know what do does, and how it cooperates with the while loop, but won\'t a while loop code be the same, whether or not the do is there?
if you write the "loop" like so (without the do as in your question):
do
int i=0; { System.out.println(i++); }while(i<10);
it will just print out 0 (nothing more), and not loop 10 times.. so no, the loop won't be the same if the do isnt there.
0