When I try to run the following code:
LocalTime test = LocalTime.parse(\"8:00am\", DateTimeFormatter.ofPattern(\"hh:mma\"));
I get this:
You need to capitalize to AM and add a leading zero in front of the 8.
LocalTime lt=LocalTime.parse("08:00AM",DateTimeFormatter.ofPattern("hh:mma"));