From a time input in format 5:00 to 05:00!
in arr[1]
there is "5:00" <--string format
DateTimeFormatter time=DateTimeFormatter.ofPattern("HH:mm");
LocalTime arr1 = LocalTime.parse((CharSequence) time.parse(arr[1]));
From a time input in format 5:00 to 05:00!
in arr[1]
there is "5:00" <--string format
DateTimeFormatter time=DateTimeFormatter.ofPattern("HH:mm");
LocalTime arr1 = LocalTime.parse((CharSequence) time.parse(arr[1]));
Works for me.