Convert epoch milliseconds value to ZonedDateTime
If you have epoch value and wanted to convert epoch milliseconds to ZonedDateTime then you can use ZonedDateTime.ofInstant() and Instant.ofEpochMilli() methods for the conversion.
If you have epoch value and wanted to convert epoch milliseconds to ZonedDateTime then you can use ZonedDateTime.ofInstant() and Instant.ofEpochMilli() methods for the conversion.
It is very common that Java web services receives JSON string. If you wanted to convert JSON string to Jsonobject using Google Gson then there are two ways to achieve this. JSON string to JsonObject Example Google Gson is a… Read More!
When you deal with json object you may want to check whether key exists in the jsonobject before fetching value for that key. We can easily check using Google gson JsonObject has() method. has() method – Class JsonObject This is… Read More!
Do you want to pause or suspend a method of a class which is getting executed via quartz scheduler based on the cron expression ? Let’s say you wanted to pause the method being executed by the cron job based… Read More!
Are you facing “Local variable assignedHour defined in an enclosing scope must be final or effectively final” error while trying to use local variable assignedHour that is not declared as final in the lambda expression or inside an inner class ?… Read More!