How to get milliseconds using Date and Time classes
Prints 2024-07-30T00:00 Prints 2244514800000
How to get milliseconds using java.time.instant
How to use datetimes and timestamps in Java for mysql database
In Java, dates are typically represented by java.util.Date, which, despite its design flaws, serves as…
running spring application throws hibernate_sequence doesn’t exist error
If you are getting error hibernate sequence while running the spring application fetching records from…
How to add website’s logo to the browser tabs as fav icon?
The favicon which is a small square shaped .ico file, which is the standard file type for favicons.…
creating a new category using WordPress rest API
The above works as expected. Now, to create categories, just change the following 2 lines:
Convert String array to comma separated string in java
for convert into a format
Inputstream from a URL
Use java.net.URL#openStream() with a proper URL (including the protocol!). E.g. See also:
How to split a comma-separated string
Basically the .split() method will split the string according to (in this case) delimiter you are passing…