Java String Example Program with Output

String datatype is immutable in java. But following functionalities can be accessed in string datatypes in java.  Here some java string example programs.

Reverse Word in the String 

Java Program to Reverse word in the String

Reverse a Character in String

Java Program to reverse character using StringBuffer

Remove Duplicate element in Array

Java Program to Remove Duplicate Elements in Array

Checking Palindrome

Java Program for Palindrome

Counting Repeated words in String

Java Program to Count repeated words in String

Split string using the comma

Java Program to Split String by Comma

Converting ASCII to Character

Java Program for Convert ASCII value to Character

Reverse Word in the String 

Java Program to Reverse Character and Word in String

Replace vowels with the star

Java Program to Replace Vowels with Star

 

Leave a Reply

Your email address will not be published. Required fields are marked *