your video helped me too much I'm from brasil and I can understand you very well. your patience to explique is amazing continue it and thanks a lot. Subscribed
Hi I'm Steven from Canada. Thanks for sharing this example of Java Date time API. I'm currently in Bootcamp java course. It really help me to understand to use date time API. 👌
Thanks for this! You should also mention that datetimeformatter (like localdate) is immutable, meaning that the variable needs to be reassigned to update its value
Good day! May I ask if how can I use if-statement in localtime? example, I input String (06:30) then the inputted string convert to time (LocalTime Alarm = LocalTime.parse(time);), If the time entered is past the current time, then display "Alarm is set for tomorrow!"; otherwise, display "I'll wake you up later!" How can I compare two local time? please help me ty
Well if you want to make it real time you need something extra to display it. Let's assume you want to do it all in Java, you could for example use Java Swing. Here's a quick (a little sloppy) example: github.com/BrightBoost/random-examples-java/blob/main/src/main/java/org/example/RealTimeClock.java Please let me know if this resembles what you meant 😊😊
Tysm! Is there any chance you could go over joda time and perhaps compare the two, a lot of projects seem to use joda time and are trying to migrate to java time.
Dates will probably always be a bit tough. But it has been so much worse in the past (and not only in Java.. try dealing with dates in C/C++ for example).