Posts from Java

Deque in Java with examples

By Abhi Tiwari

What is java.util.Deque? In this blog, you will learn about Java Deque Interface also its declaration, Constructors, etc. Deque (double-ended queue) is generally pronounced as a de.... Read More

Swap two elements in an array in Java

By Abhi Tiwari

In this blog, you will see simple logic to swap the elements of the array, and also you can learn about Java.util.Collections Swap method. Simple Swapping logic in Java public clas.... Read More

How to use String format ( ) function in Java

By Subhojeet Ghosh

In this tutorial, we will learn how to use the String format function in Java. Let us go deep into what String formatting is. String formatting can be defined as formatting a Strin.... Read More

Remove Duplicates from ArrayList in Java

By Subhojeet Ghosh

In this tutorial, we will learn how to remove duplicate elements from an ArrayList in Java. Let’s know something about ArrayList in Java. ArrayList is defined as a dynamic array .... Read More

How to check whether an array is empty or not in Java

By Subhojeet Ghosh

In this tutorial, we will learn how can we check whether an array is empty or not in Java. First and foremost, let’s discuss what an array is. An array can be defined as a linear.... Read More

How to Add an Image in JFrame

By Anirudh Jakhotia

Hello, folks!. In this tutorial, we will learn and focus on how to add an image in Java JFrame. Create a Java JFrame Firstly, we import the Java AWT and Java Swing libraries into o.... Read More

Sort a list using stream.sorted() in Java

By Kratika Jain

In this tutorial, we will learn about How to sort a list using stream.sorted() in Java. Before getting into the coding let’s know about java 8.  Introduction to Java 8 Java .... Read More

How to Detect Screen Resolution of a Device in Java

By Anirudh Jakhotia

Hello learners!. In this tutorial, we will know how to detect the screen resolution of a device in Java. Detect Screen Resolution of a Device in Java Firstly, We use the Java Toolk.... Read More

Related Posts