|
home—info—lects—labs—exams—hws
textbook—tutor/PIs—java.lang docs—java.util docs
We will write methods for:
On a different tack: Write a method which takes in an integer sz, and returns an array of sz doubles where each element has been initialized from the keyboard.
We will draw memory diagrams of what goes on, when this method is called from another one.
What additional argument might be good, to give to this method beyond sz? How about a string or two, indicating exactly how to prompt the user? As a user, how do you expect to be prompted, to read in 31 temperatures, or 8 pole-vault results, or …?
home—info—lects—labs—exams—hws
textbook—tutor/PIs—java.lang docs—java.util docs
©2009, Ian Barland, Radford University Last modified 2009.Apr.15 (Wed) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |