Posts from Java

Removing Element From LinkedList for Integer Type and String Type

By Saruque Ahamed Mollick

In this post, We are going to know an interesting fact of remove() method used in a LinkedList object. at the end of this lesson, we will learn how to remove an element without kno.... Read More

Working With LinkedList (Adding,Removing and Retrieving Elements) in Java

By Saruque Ahamed Mollick

In Java, LinkedList implements the list interface as well as Queue interface. Thus LinkedList is not same as ArrayList in Java as ArrayList implements the list interface only. In t.... Read More

Working with ArrayList in Java ( Adding,Removing elements)

By Saruque Ahamed Mollick

Working with ArrayList in Java is very useful, But we have to know how to add elements, remove elements and update or replace elements of an ArrayList so that we can work as per ou.... Read More

How to Modify Element or Elements of an ArrayList in Java

By Saruque Ahamed Mollick

While working with ArrayList in Java, You might have faced some problems like, suppose you got a huge number of elements in your ArrayList and you have to modify a particular eleme.... Read More

How To Convert An ArrayList to Array In Java

By Saruque Ahamed Mollick

In many cases, you will have to convert an ArrayList to Array in Java. There is a most popular way to do is “Creating an object and use a for loop  just like the below code&.... Read More

Finding an ArrayList in Java is Empty or Not

By Saruque Ahamed Mollick

We are going to learn how to check if an ArrayList is empty or not. In order to do that we have several ways. Comparing the size of the ArrayList with zero. Using isEmpty() method .... Read More

How to Increase and Decrease Current Capacity (Size) of ArrayList in Java

By Saruque Ahamed Mollick

Java ArrayList is initialized by a size and the default size of ArrayList in Java is 10. Java ArrayList is nothing but a part of Java Collection Framework and resided in Java.util .... Read More

How To Reverse String In Java in Different Ways

By Saruque Ahamed Mollick

In this post, we are going to learn how to take String input from the user and then we will make the string reverse in different ways in Java. You can choose any of these programs .... Read More