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 […] 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 […] 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 […] 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 […] 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 […] 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 […] 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 […] 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 […] 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. […] 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 […] 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 […] Continue reading »

1 10 11 12 13