Java Program to Insert Element At the End of Array

Insert Element At The End Of Array in java

In this tutorial, we will learn writing Java Program to insert an element at the end of an array and print the array. Our program will add an element at the end of the given array (list). For example Java Program to Insert Element At the End of Array Program 1: Using Iteration Output Enter … Read more

Reverse Array without using Second Array or inplace Reversal Java Program

Reverse Array Without Using Second Array Or Inplace Reversal in java

In this tutorial we will learn writing java program to reverse an array without using any other array. This is also known as inplace array reversal program in java. In previous tutorial we have seen Array reversal in java using second Array. Inplace Array reversal Program in Java Output

Java Program to Sort String Character in Descending order

Sort String Character In Descending Order in java

In this tutorial, we will learn writing the java program to sort all the characters of the string in Descending order. For example Java Program to Sort String Character in Descending order Output Explanations For the input string ‘quescol’, firstly, the string’s elements get stored in the character array that looks like                     {‘q’, ‘u’, … Read more

Java Program to Sort String in Ascending Order

Sort String In Ascending Order in java

In this tutorial, we will learn the java program to sort all the characters of the string in ascending order. For example Java Program to Sort String in Ascending Order Output Explanation For the input string ‘quescol’, firstly, the string’s elements get stored in a character array that looks like                     {‘q’, ‘u’, ‘e’, ‘s’, … Read more

Java Program to Print non Repeating Characters in String

Print Non Repeating Characters In String in java

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 string is repeating or not if it is not repeating then print that character as output. For example Java Program … Read more

Java Program to Find Sum of Integers in the String

Find Sum Of Integers In The String in java

In this tutorial, we will learn the java program to fetch the integers from the given strings and print the sum of integers digits present in the string. Take any string as an input from the user and check for integers and if there are integers then return the sum of digits of integers. For … Read more

Java Program to Remove Duplicates From String

In this tutorial, We will learn writing the java program to remove the duplicate characters from the String. Take any string as an input from the user and check for duplicate characters and if there is any duplicity of characters then remove it. For example Java Program to Remove Duplicates From String Output Explanation Here, … Read more

Java Program to Concatenate two Strings

Concatenate Two Strings in java

In this tutorial, we are going to learn java program to concatenate two strings together. For two input strings that are given by the user, we need to join them together and return the final string as an output. For example Program 1 :Concatenate two Strings using ‘+’ Operator in Java Output Explanations The user … Read more