Perform Left Rotation on Array Elements by Twice

In this tutorial, we will learn writing java program to create an array and perform left rotation on elements stored in the array by two positions. Perform Left Rotation on Array Elements by Twice Explanation…

Perform Right Rotation on Array Elements by Twice

In this tutorial we will learn a Java program to create an array and rotate the elements stored in the array by two positions. Our program will first take the input of the array size…

Remove duplicate elements in an array

In this tutorial you will learn how to write a program to remove duplicates from an array. Below are the approaches we will follow to write our program: In this program we will first create…

Find top two largest number in Array

In this tutorial you will learn how to write a Java program to find the largest two numbers in a given array. Below is the procedure we will follow when writing our program: In this…

Insert Element in Array at given Location

In this tutorial, we will learn to write a Java program to insert an element at a given position of an array. Our program will insert an element at the given position (index) of the…

Print Array in Reverse Order

In this tutorial we will learn to write a Java program to create an array and return the elements in reverse order. Our program will first input the size of the array and then the…

Reverse Array without using Second Array or inplace Reversal

In this tutorial, we will learn to write a Java program to invert an array without using another array. This is also known as inplace array reversal program in Java. In the previous tutorial we…