import java.util.Date;
public class MainClass {
public static void main(String[] args) {
Date now = new Date();
System.out.printf("hours, minutes, and seconds on a 24-hour clock: %tT/%TT\n", now, now);
}
}
hours, minutes, and seconds on a 24-hour clock: 15:57:42/15:57:42