Computer Science 252
Problem Solving with Java
Fall 2015, The College of Saint Rose
Agenda
Due at the start of class, Tuesday, September 15.
Please submit answers to these questions in Submission Box under "LA4" or in hard copy by the start of our next class. We will discuss these questions at the start of class, so no late submissions are accepted. Please be sure that your name is clearly indicated in all submissions.
Note that System.currentTimeMillis returns the number of milliseconds since some fixed time in the past, as a long value. In case you haven't used them, long values work just like int values but can store a much larger range of values (264 values rather than the 232 that can be stored by ints).
If you know the return value of System.currentTimeMillis at some time in the past, the number of milliseconds since that time can be computed by the difference between the current return of System.currentTimeMillis and that previous return value.
Hint: this is a lot like the ClickCounter example, except the number you are to display is not the counter, but the result of the subtraction of the previous click time from the current click time.
Note: this is a restatement of BDM Exercise 5.8.1, p. 149. (10 points)
Terminology
Examples