Write a program in java to input a word and to find whether it is a palliandram or
Answers
Answered by
2
Answer:
Java Program to Check whether a String is a Palindrome
public class Palindrome.
String a, b = "";
Scanner s = new Scanner(System.
System. out. print("Enter the string you want to check:");
a = s. nextLine();
int n = a. length();
for(int i = n - 1; i >= 0; i--)
b = b + a. charAt(i);
Please mark it as the brainliest...
Similar questions