Category: Core Java
How to shuffle the elements in a List via Java
In this blog post, I will be explaining how you can shuffle list via Java. Consider the following code snippet: […]
public static void main explained
I’ve seen a lot of questions posted which ask the meaning of public static void main in Java. In this […]
Java classes and objects explained
In this blog post, I will be explaining the distinction between classes and objects. The most important thing to understand about […]
Java prefix and postfix notation explained
You might have used the increment and decrement operators in Java. You can use these in prefix and postfix form. […]
Java 8 BooleanSupplier Example
In this blog post, I will be explaining how the Java 8 functional interface BooleanSupplier works. To know more about functional interfaces, […]
How to convert a String to a Date
In this blog post, I will be demonstrating how you can convert a String to a Date object. Consider the […]
Java Path and Classpath explained in detail
In this blog post, I will be explaining Java PATH and CLASSPATH. Both PATH and CLASSPATH are environment variables that […]
How to print the current date and time
In this blog post, I will be demonstrating how you can print the current date and time. Consider the […]
Java loops Examples
In this blog post, I am going to demonstrate all of Java’s loops. I am going to write loops that […]