Posts from Java

Convert Date to String in Java

By Smitha S Maganti

In this demo, we will be learning how to convert Date to String using the Java programming language. The conversion of Date to String is called formatting. We make use of the class.... Read More

Random nextGaussian() method in Java

By Ishika Koytekar

In this tutorial, we are going to learn about the nextGaussian() method which is present in the Random class in Java. It is used to generate the next pseudorandom Gaussian double v.... Read More

How to check if a date is a weekend or not in Java

By Tishya Thakkar

In this tutorial, we will learn how to check if a date is a weekend or not in Java. To do this we will use the LocalDate class in Java as shown below. We will use this as we are ju.... Read More

Find the second-highest number in an ArrayList in Java

By Ishika Koytekar

In this tutorial, we are going to learn how to find the second-highest number in an ArrayList in Java. ArrayList is present in java.util package and it provides a dynamic approach .... Read More

How to change the format of date from dd/mm/yyyy to mm/dd/yyyy in Java

By Smitha S Maganti

In this demo, we are going to learn how to change the format of date from ‘dd/mm/yyyy’ to ‘mm/dd/yyyy’ using Java programming language. Java program to chan.... Read More

How to convert JSON String to Java Object

By Ishika Koytekar

In this tutorial, we will learn how to convert JSON String to Java Object using the JACKSON library. Using a simple Java program we can easily convert JSON String to Java Object. J.... Read More

How to fetch text from a PDF and store in a .txt file in Java

By Tishya Thakkar

In this tutorial, we will look at how to fetch text from a PDF file and then store it in a text file using java. To do this we will use an open-source Java library known as PDFBox..... Read More

Build first GUI Application in Java using NetBeans IDE

By Vaishnavi Penumerthy

This tutorial is an introduction to GUI applications in Java using NetBeans IDE. The picture above looks like a login window, right? Yes. If you see, we have two input fields (text.... Read More