Java Tutorials


How to shuffle list elements in Java

On this page, we are going to shuffle or randomize elements of List in Java. In this example, we randomize the ArrayList elements. Using Collections.shuffle we […] Continue reading »

How to parse nested JSON object in Java

In this Java tutorial, we are going to parse or read the nested JSON object using the library JSON.simple. To parse the Nested Object, we need […] Continue reading »

How to write JSON object to File in Java

In this Java tutorial, we are going to write JSON objects and JSON Array in a file using Java. To create the JSON file using […] Continue reading »

How to parse JSON in Java

In this Java tutorial, we are going to parse the JSON data using java program. To parse the JSON object we need to add some […] Continue reading »

How to remove vowels from a string in Java

In this example, we are going to remove/eliminate all the vowels from a string in Java. In our alphabets we have five vowels i.e. a,e,i,o,u/A,E,I,O,U. […] Continue reading »

Swap two numbers in Java

On this page, we are going to swap the value of two integers. Sometimes you need to swap/interchange the value of the variable or sometimes […] Continue reading »

How to get System Information in Java

In this article, we will get the system details using Java program. Sometimes we need we need to display or store the system information in […] Continue reading »

How to insert line number in file using Java

In this example, we are going to show to add Line Number in a file using java program. Here we are going to read a […] Continue reading »

How to Encrypt and Decrypt data in Java

In this tutorial we are going to explain how to Encrypt and Decrypt plain text data in a simple way. In this example, we are […] Continue reading »

How to calculate difference between two dates in Java

On this page, we are going to calculate the difference between two dates. Sometimes we have a requirement in our project to process the calculation […] Continue reading »

How to Read and Write Excel file in Java

In this tutorial, we will explain How to Read and Write Excel file in Java using JExcel API. Let’s see the step by step first we […] Continue reading »

1 2 3 4 5