[Solved] how to make my program check if its a palindrome by ignoring non-alpha characters and white spaces [closed]
After you set your variable “original” to the next line of text, you can call the replaceAll() string method to strip away any unwanted characters with a specifier parameter. Also, you can call toLowerCase() to get all lower case strings. String original, reverse = “”; Scanner in = new Scanner(System.in); System.out.println(“Enter a string to check … Read more