|
home—info—lects—labs—exams—hws
textbook—tutor/PIs—java.lang docs—java.util docs
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.)
home—info—lects—labs—exams—hws
textbook—tutor/PIs—java.lang docs—java.util docs
©2009, Ian Barland, Radford University Last modified 2009.Apr.07 (Tue) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |