Package com.project
Class PalindromeChecker
java.lang.Object
com.project.PalindromeChecker
Main class for the Palindrome Checker application.
This program checks if a given word or phrase is a palindrome. It ignores spaces, punctuation, and case sensitivity while checking.
- Version:
- 1.0.0
- Author:
- Anurag Zete
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
checkContinuity
(Scanner input) Asks the user whether they want to check another phrase.static void
The entry point for the Palindrome Checker application.
-
Constructor Details
-
PalindromeChecker
public PalindromeChecker()
-
-
Method Details
-
main
The entry point for the Palindrome Checker application.Displays a welcome banner, prompts the user for input, and checks whether the entered phrase is a palindrome. The program loops until the user chooses to exit.
- Parameters:
args
- Command-line arguments (not used).
-
checkContinuity
Asks the user whether they want to check another phrase.- Parameters:
input
- The Scanner object used to read user input.- Returns:
true
if the user wants to continue,false
otherwise.
-