life clock console program java