-
Notifications
You must be signed in to change notification settings - Fork 69
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