Java based time keeping program