Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java scanner class time

Scanner scan=new Scanner(System.in); 
String time=scan.next();  //default format: hh:mm:ss 
LocalTime lt=LocalTime.parse(time); 
System.out.println(lt);
Source by www.quora.com #
 
PREVIOUS NEXT
Tagged: #java #scanner #class #time
ADD COMMENT
Topic
Name
9+2 =