Java Program to Sort array elements in ascending order
There are multiple ways and algorithms to sort the array in ascending order. In this tutorial we will see some easy ways of sorting an array in ascending order. For…
There are multiple ways and algorithms to sort the array in ascending order. In this tutorial we will see some easy ways of sorting an array in ascending order. For…
To search an element in array there are two popular algorithms linear search and binary search. In this tutorial we will learn both ways to perform searching on array. For…
In this tutorial you will be learning writing java program to separate the even and odd number in two different arrays. To perform this, we will create two array with…
In this tutorial we will learn writing Java Program to merge the two array and generate one new array. This merging of array is also known as concatenation of arrays.…
There are multiple ways to delete all duplicate elements from an arrays. To delete the given element from array you can use third temporary array or by sorting the array…
To count the duplicate number in array, We will be using for loop two times and perform the comparison. If value matched then increase the count otherwise not. What is…
There are multiple approaches to delete an element from an array at a given location. We can delete the element from a given index of an array by using a…
In this tutorial you will be learning writing java program to print the all unique elements. Unique elements mean we don't have to print duplicate elements of an array. Array…
In this programming tutorial you will learn writing Java Program to find the frequency of each elements given in Array. To find the counting of each elements we can take…
To remove the first element from the array using Java, we can create a new array of size one less than the original array. Now we will copy the all…
In this tutorial, we will be learning to write a java program to delete elements from the end of the array. There is multiple logic to achieve this. In this…
To insert the given element at a given location in an array using java, We have to shift the elements toward the right till we reach the index. This is…
To insert an element in the array at a given location using java first we have to perform the right shift by one so that we can insert the element…
To insert an element at the beginning of an array, we have to shift all element to the right. After shifting to the right, the zero index will become free…
To insert an element at the end of an array, first we have to iterate the array till the end and then add an element at the end of the…
In this tutorial, you will learn to write a program in java to count the duplicate characters available in a string. In other words, we can say if a character…
In this tutorial, we will be learning the writing a java program to count the duplicate characters in the string. Basically, for a given string we have to print all…
In this tutorial we are going to learn writing java program to copy one array to another array. This program will be going to very simple. Here using the for…
In this tutorial, you are going to learn to write Java Program to find the second largest element in an array. To Find the second largest or we can say…
In this tutorial, we will learn to write a java program to find the maximum and minimum elements in an array. For example, Input: arr[] = [1, 7, 5, 2,…