Posts from Java

How to Modify Element or Elements of an ArrayList in Java

By Saruque Ahamed Mollick

While working with ArrayList in Java programming, you might have faced some problems when you have to modify a particular element from an ArrayList containing a huge number of elem.... 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

Java Program to Find Average of Numbers In Array

By Saruque Ahamed Mollick

This below Java Program will find the average of integer elements from Array. Java Code To Find the Average value of Number Elements ( Elements will be taken from user inputs) from.... Read More

Remove Duplicate Elements From Unsorted Array And Print Sorted in Java

By Saruque Ahamed Mollick

Now we are going to learn a java program to deal with unsorted array (or maybe a sorted or any kind of array). An unsorted array means it will not contain the elements in a particu.... Read More

Check A Number Is Armstrong or Not Using Java Program

By Saruque Ahamed Mollick

In this post, we are going to learn how to check Armstrong number in Java. Armstrong Number Just take any number. Take the digits of that number. Now add the cubes of the digits. .... Read More

Related Posts