Read file from resources folder in Java project code
In this code example, we will take a look at how to read a file from the resources folder in the Java project using code.
Get Absolute Relative Path of File in IDEA IntelliJ
How to get the Absolute Relative Path of File in IDEA IntelliJ?
Sort a List using Java 8 Stream Examples
In this article, we will take a look at various examples to Sort a List using Java 8 Stream.
Parse XML file in Java using DOM Parser
In this example, we will take a look at how to parse an XML file using DOM Parser.
Create a Zip file using Java Code programmatically
Program to demonstrate how to create a zip file using Java code.
Ways to Convert Integer or int to Long in Java
Examples of ways in which we can convert Integer or int to Long in Java.
[Fix] Cannot resolve No versions available for org.osgi.service:org.osgi.service.prefs:jar:[1.1.0,1.2.0) within specified range
How to fix Cannot resolve No versions available for org.osgi.service:org.osgi.service.prefs:jar:[1.1.0,1.2.0) within specified range.
[Solution] IntelliJ: Cannot find declaration to go to, Nothing here, Java file outside of source root Errors
Solution for how to fix error Cannot find declaration to go to, Nothing here, Java file outside of source root Errors in IDEA IntelliJ
[fix] Java NullPointerException ComparableTimSort countRunAndMakeAscending when sorting a List
How to fix Java NullPointerException ComparableTimSort countRunAndMakeAscending when sorting a List
Java equals method - Tutorial
In this tutorial, we will take a deep dive into the Java equals method with examples and interview questions.
Java equals method - Tutorial
In this tutorial, we will take a deep dive into the Java equals method with examples and interview questions.
[fix] java: incompatible types: double cannot be converted to java.lang.Integer Generics
How to fix Java: incompatible types: double cannot be converted to java.lang.Integer/Float/Double/Boolean/Character.
[Fix] Java: Type argument cannot be of primitive type generics
How to fix Java: The type argument cannot be of the primitive type in generics code.
Java 8: Get First and Last Date of the Week for Given Date
In this tutorial, we will take a look at how to get the First and Last Date of the Week using Java 8 TemporalAdjusters.
[Fix] java.time.zone.ZoneRulesException: Unknown time-zone ID
How to fix java.time.zone.ZoneRulesException: Unknown time-zone ID error.
Best way to calculate elapsed time in Java using Java 8 Duration & Instant Class with Nanoseconds precision
In this article, we will take a look at the best way to calculate elapsed time in Java using Java 8 Duration & Instant Class with Nanoseconds precision.
Java java.time.Clock class code examples [Java Date Time API]
In this tutorial, we will take a look at the java.time.Clock class with code examples.
Add days/weeks/months/years to LocalDate in Java 8 and above examples
How to add days/weeks/months/years to LocalDate in Java 8 and above with code examples
Java Date Time API: LocalDateTime get(TemporalField field) examples
In this tutorial, we will take a look at how to make use of the Java Date Time API: LocalDateTime get(TemporalField field) with examples