Java Tutorials


Example of sending email in Java using Gmail SMTP

This Java tutorial will explain how to send an email through Java program using Gmail server and JavaMail API. JavaMail […] Continue reading »

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 »

1 5 6 7 8