CIS 260 Computer Programming I

In Class Exercise: Array Reversal

 

Programming Exercise

Write the java code needed to complete the following exercise.  Hand in a printout of the source code and screen shots of the results.

Ask the user for a list of 5 items. Print the items in the list in the same order as entered, then print the items in reverse order (last to first).

BONUS: Allow the user to enter any number of items (up to 100) without having to decide before data entry.