javastring

Palindrome

Palindrome String A string is said to be palindrome if it is the same from both the ends. For example : malayalam,rotor,civic,etc Program 1 : Check Whether String is Palindrome (Using Reverse String) Program 2 : Check Whether String is Palindrome (Using Two Pointer) Program 3 : Check Whether String is Palindrome (Using Recursion) Program

Palindrome Read More »

Anagram String

Anagram String What is Anagram String ? Two strings are said to be anagram if they contain the same characters even though order of characters may be different. For example read and dare,eat and tea,fear and fare and so on Program 1 : Java Program To Check Whether Two Strings Are Two Strings Are Anagram

Anagram String Read More »

Reverse String

Reversing A String Programmatically Program 1 : Program to Reverse a String (Method – 1 Using for loop) Program 2 : Program to Reverse a String (Method – 2 Using String.getBytes() Method) Program 3 : Program to Reverse a String (Method – 3 Using StringBuilder.reverse() Method) Program 4 : Program to Reverse a String (Method

Reverse String Read More »

Insert String

Inserting New String Into Existing String Program 1 : Java Program to insert String into another String (Method 1) Program 2 : Java Program to insert String into another String (Method 2 : Using String.substring()) Program 3 : Java Program to insert String into another String (Method 3 : Using StringBuffer.insert())

Insert String Read More »

Scroll to Top