dates in java 8 1

dates in java 8

LocalTime sixThirty = LocalTime.parse("06:30");

Here is what the above code is Doing:
1. We create a LocalTime object by parsing a String.
2. We create a LocalTime object by using the of() method.
3. We create a LocalTime object by using the now() method.
4. We create a LocalTime object by using the parse() method.

Similar Posts