Palindrome tester with Java, ignoring spaces and punctuation

后端 未结 7 1356
忘了有多久
忘了有多久 2021-01-07 04:26

I have the program made up until the point where it has to ignore and punctuations and spaces in the thread and I was wondering if anyone could help me with the coding for t

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-07 05:01

    Your Problem: You are not ignoring the case of the letters. So if you try Able was I, ere I saw Elba, it will not come back correctly, although it is a true palindrome.

提交回复
热议问题