Program to check whether a string is palindrome or not in Java
Program to check whether a string is palindrome or not in Java
A string is said to be palindrome string that gives the same string if we read it from the back. For Example, Mom if we reverse it we still get the same string.
Java program to check whether a string is palindrome or not
import java.util.Scanner; public class StringPalindrome { public static void main(String[] args) { String word,reversed=""; char ch[]; int i,size; System.out.println("Please…
View On WordPress














