(1) Using a while loop, write code that is equivalent to
for(int i = 0; i < 100; i++) System.out.println(i);
class SomeClass { int x; static void foo(int count) { // Prepare do_some_preliminary_stuff(); do_some_more_needed_things(x); do_something_else(); // Process it all for(int i = 0; i < count; i++) { move_a_thing_to_the_place(); make_the_place_become_the_thing(i); rename_the_thing_to_place(x); } // Finish up finalize_the_stuff(x); do_some_final_polishing(); declare_it_all_completed(); } }