Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Calendar calendar = Calendar.getInstance();
- SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
- System.out.println(dateFormat.format(calendar.getTime()));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement