Computer Science 252
Problem Solving with Java
Fall 2014, The College of Saint Rose
Agenda
Due at the start of class, Tuesday, September 9.
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.
Write a program called ElapsedTime that displays, in a Text object on the canvas, the number of seconds between the most recent two mouse clicks. Note that System.currentTimeMillis returns the number of milliseconds since some fixed time in the past. 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. (10 points) (Note: this is a restatement of BDM Exercise 5.8.1, p. 149)
Terminology
Examples