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

Java Program to Count Vowels and Consonants in the String

In this tutorial, we are going to learn java programming to count the number of vowels (‘a’, ‘e’, ‘i’, ‘o’, ‘u’) and consonants (any alphabet other than vowels) in a string. For any input string, we have to count the number of vowels that appear and the number of consonants that appear. And returns the … Read more

Java Program to Convert Lowercase Character to Uppercase Character

Convert Lowercase Character To Uppercase Character in java

In this tutorial, we are going to java a java program to convert lowercase characters (alphabet) into uppercase characters (alphabet). For any input string, any lowercase character used in input string will be replaced with uppercase character of same alphabet as lowercase character. Converting characters from lowercase to uppercase is a common task in programming, … Read more

Replace Spaces of String with a Character in Java

In this tutorial we will learn writing java program to replace blank spaces of a String with a given character. The program will accept one string and one character from the user. Program 1 : Replace Space with Given Input using replace() method Java Output Explanation: Here, the user input string ‘quescol Website’, and a … Read more