This preview shows page 1. Sign up to view the full content.
Unformatted text preview: -2. Write that n as a parameter and t.hat a method writeSquares takes an integer wrj-tes the first n squares to System.out separated by comrnas with the odd in descending in ascending squares order followed by the even squares For exampl-e, the call: order. writeSquares shoul-d 25 , produce 9, L, (5) i the 4, f ollowing output: 1,6 (25, 9, and 1) appear first in descending The odd squares order followed b1 (4 and 16) in ascending Notice the even squares order. c o r T \ m a sa r e that j-n the Iist. co...
View Full Document
- Spring '08