RU beehive logo ITEC dept promo banner
ITEC 120
2009spring
ibarland
nokie
jmdymacek

homeinfolectslabsexamshws
textbooktutor/PIsjava.lang docsjava.util docs

hw07-hint2
hw07 hint
part2

More precisely: figure out how many spaces you need to add and call stringTimes, passing it " " as the first argument and that number as the second argument.

For an added challenge: Note that the entire method can be done in one line, if you use one of Math.max, Math.min. (If you use a local variable to store a temporary sub-result, then two lines is plausible.)

homeinfolectslabsexamshws
textbooktutor/PIsjava.lang docsjava.util docs


©2009, Ian Barland, Radford University
Last modified 2009.Apr.07 (Tue)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme