/** * This class holds a time value consisting of hours, minutes, and seconds. */ class Timestamp { // data fields int hrs; int mins; int secs; /** * This method updates the hours, minutes, and seconds values * associated with the Timestamp object. */ void fillTimes() { java.util.Calendar now; now = java.util.Calendar.getInstance(); hrs = now.get(java.util.Calendar.HOUR_OF_DAY); mins = now.get(java.util.Calendar.MINUTE); secs = now.get(java.util.Calendar.SECOND); } }