OPENING LINE: There was
no possibility of taking a walk that day [Jane
Eyre, Charlotte
Bronte]
HAVE READ:
KNOW:
BE ABLE TO:
DAILY QUESTION:
public class Sample { public static void main(String[] args) { String []values = new String[4]; int idx = 0; while (idx < 5) { System.out.println (values[idx]); idx++; // ADVANCE } System.out.println ("DONE"); } } |
Sample Exam Question:
Write a program that instantiates an array of 3 int values, populates the array with the numbers 2, 4, and 7. Then output the numbers in reverse order by reading the values from the array using a while loop.
Go through all the steps in the design recipe in the development of your program.