-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
π§© Description
Create a simple Palindrome Checker program in Java.
The program should take a string input from the user and check whether it is a palindrome or not (a word, phrase, or number that reads the same backward as forward).
This helps beginners practice string manipulation, loops, and conditional logic in Java.
π§ Problem Statement
Take a string input from the user and determine if it is a palindrome.
Ignore case sensitivity and spaces while checking.
π§ͺ Example
Input:
Enter a string: Racecar
makefile
Copy code
Output:
Yes, it's a palindrome! π
β Expected Approach
- Take input using
Scanner - Convert to lowercase
- Remove spaces
- Reverse the string (using manual loop or
StringBuilder) - Compare original and reversed strings
- Display the result
Metadata
Metadata
Assignees
Labels
No labels