I wonder is it possible to parse clock time hour:minute:second in Java 8?
e.g.
final DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"HH:m
LocalTime.parse
Since you only have a time use the LocalTime class. No need to define a formatting pattern in your case.
String str = "12:22:10"; LocalTime time = LocalTime.parse(str);
See that code run live at IdeOne.com.
See Oracle Tutorial for more info.