Compare two arrays are equal or not in size

In this tutorial you will learn how to write a Java program to compare two arrays and check if they are the same size or not. Below is the procedure we will follow to achieve…

Find the missing number in a second array

In this tutorial, you will learn how to write a Java program to find the missing number in a second array. Since we have a fixed array, we do not need any array input from…

Print first duplicate number in an array of 1-100

In this tutorial, you will learn how to write Java program to print the first duplicate number of an array. This program is going to be very simple. Below are the approach which we will…

Count the duplicate numbers in an array

In this tutorial you will learn how to count the number of occurrences of a number in an array Java. The complete logic behind finding duplicate elements in array in C as: This program is…

Find missing number in array

In this tutorial you will learn how to write a program to find the missing number in an integer array from 1 to 100 in the Java programming language. The complete logic behind finding the…

Java Program to Print non Repeating Characters in String

In this tutorial, we will learn java program to print all characters of the string which are not repeating. Take any string as an input from the user and check if any character in the…

Java Program to Sort String in Ascending Order

In this tutorial, we will learn the java program to sort all the characters of the string in ascending order. For example Case1: If the user inputs the string ‘python’Then the output should be ‘honpty’,…