Wri te a method writesequence takes an integer that n

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: hod writeSequence takes an integer that n as a parameter and writes to System.out that a symmetric sequence of n numbers with descending i^r6^6rc ending in 1 followed by ascending integers beginning with I, as in the table bel-ow: Method Cal-1 Output Produced writeSequence (1); wr j.teSequence (2 ) ; writeSequence (3); wri.teSequence (4 , writeSequence (5 , wri-teSequence ( 6 writeSeguence (7 writ.eSequence (8); writeSequence ( 9) i writeSequence(1O); Notice for that f or even values 1 11 2L2 2LL2 32].23 321123 432L234...
View Full Document

This note was uploaded on 11/03/2009 for the course CSE 143 taught by Professor Sr during the Spring '08 term at University of Washington.

Ask a homework question - tutors are online