Java Tutorials, Tips & Tricks

Learn about different ways to remove the last character of a string in Java.

Learn more

A protip to learn how to reverse the elements of a stream object in Java.

Learn more

A simple guide to learn how to extract digits from a string in Java.

Learn more

A detailed guide to learn how to read and parse a CSV file using core Java, OpenCSV, and Apache Commons CSV.

Learn more

A complete guide to learn how to calculate the difference between two dates in Java using new date and time API as well as legacy date API.

Learn more

Learn about six different ways to check if a specific string contains a substring in Java.

Learn more

A quick guide to learn how to convert a Java object to its XML representation and vice versa using JAXB.

Learn more

A complete guide to learn how to read and write XML in Java using JAXB and DOM Parser.

Learn more

A quick article to learn how to generate random numbers in a range in Java.

Learn more

A quick tutorial to learn how to convert a string to an instance of LocalDateTime in Java.

Learn more

A quick tutorial to learn how to convert a string to an instance of LocalDate in Java.

Learn more

A quick tutorial to learn how to format an instance of LocalDateTime in Java.

Learn more

A quick tutorial to learn how to format an instance of LocalDate in Java.

Learn more

A complete guide to learn how to format a date to a string in Java 8 and beyond.

Learn more

A quick tutorial to learn how to add days to a date using Java 8 new date and time API as well as the legacy Date and Calendar API.

Learn more

A comprehensive guide to learn how to compare dates using Java 8 new date and time API as well as legacy Date and Calendar API.

Learn more

A quick article to learn how to get the UNIX timestamp in Java.

Learn more

A quick article to learn how to get the current timestamp in Java.

Learn more

A comprehensive guide to learn how to convert a string to a date using Java 8 new date and time API, legacy Date class as well as external libraries.

Learn more

A detailed tutorial to learn how to get current date and time in Java using legacy classes as well as Java 8 new date and time API.

Learn more
🙌 Get new tutorials in your inbox every week