JavaBasicPrograms icon indicating copy to clipboard operation
JavaBasicPrograms copied to clipboard

Palindrome Checker Program in Java

Open souravCoder1 opened this issue 1 year ago • 0 comments

🧩 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

  1. Take input using Scanner
  2. Convert to lowercase
  3. Remove spaces
  4. Reverse the string (using manual loop or StringBuilder)
  5. Compare original and reversed strings
  6. Display the result

souravCoder1 avatar Oct 16 '25 08:10 souravCoder1