Waktu Kelas Pemindai Java

Scanner scan=new Scanner(System.in); 
String time=scan.next();  //default format: hh:mm:ss 
LocalTime lt=LocalTime.parse(time); 
System.out.println(lt);
Brainy Butterfly