Ways to execute Shell Commands in Java Code Examples
Let us take a look at some ways to execute Shell Commands in Java with examples.1
Java: Convert a Text file into Array of Bytes Example
How to convert Convert a Text file into Array of Bytes example in Java Programming.
How to get file path of a file using Java Code?
Let us take a look at how to make use of the getAbsolutePath() method from the File or Paths class with examples.
Know the Current Project/Module Classpath using Java Code
Let us take a look at how to know the Current Project/Module Classpath using Java Code.
Converting Array into ArrayList - Java
We take a look at ways of converting array into ArrayList in Java Programming.
Read/Write Java Object to a File
Making use of object serialization and deserialization to read and write Java object to a file.
Check if a Java String is Numeric or Alphanumeric
We can make use of regular expressions to know if a string is numeric or alphanumeric in Java.
Using Java JDK 22 with IntelliJ IDE
I will be showing how to make Java JDK 22 with IntelliJ IDE in this article with steps.
java.util.Optional Class Deep Dive Tutorial
Let us take a deep dive in the java.util package Optional class in Java.
When to use of() and ofNullable() methods of Optional in Java?
We answer when to make use of () and ofNullable() methods of Optional in Java.
How to create an Optional from existing Object in Java?
Let us take a look at how we can create an Optional from an existing Object in Java.
Java Program: Convert String to Double
Write a Java program to convert a String to Double.
Java Stream Convert List of Objects to List of Strings
Let us take a look at an example of how to convert a list of objects to a list of strings using Streams.
How to check if Java String is Empty or Null
Let us take a look at how to check if a String in Java is Empty or Null.
How to Join Two Arrays in Java using Stream API?
Let us take a look at how to join two arrays in Java using Stream API.
How to find duplicate elements in Java Stream?
Let us take a look at how to find duplicate elements in a Java Stream.
Fix: java: void cannot be dereferenced
Let us take a look at how to fix the error java: void cannot be dereferenced.
Deep Dive Java CharSequence Interface
Let us deep dive into the Java CharSequence Interface.
Java 8 Stream API peek() method with Example
What is the use of the peek() method in Java 8 Stream API with an example?
Java Program: Find max value in List using Java 8 Stream API
Write a program in Java to find max value in List using Java 8 Stream API