BJP3 Self-Check 5.2: forToWhile
Convert each of the following
for loops into an equivalent
(You might need to rename some variables for the code to compile, since all four parts a-d are in the same scope.)
Bare code: For this problem, you are supposed to just submit a fragment of Java code as described. You should not write any class or method heading around your code; just write the lines of code that will produce the result described.
Contacting server and running tests...
Is there a problem?
Contact a Practice-It administrator.