-2

The link contains the code image

Hello I tried string palindrome without using.equal() method Task given by our Professor as you can see I took a palindrome string and converted it into toCharArray And Applied For Loop and Took a empty String named Reverse The Characters from for loop will be concatenate in reverse but in "if" statement i applied str==reverse which is true but I'm not getting displayed Palindrome instead It's Printing "Not a Palindrome" I would Really Appreciate if some one Solved my Problem

Kaneki
  • 1
  • 1
  • Cuz you are comparing strings wrong – Antoniossss Aug 24 '23 at 11:23
  • 1
    "as you can see" no, we can't. Next time please include a [example] with your question. – Federico klez Culloca Aug 24 '23 at 11:24
  • “The link contains the code image” …in the future, please place code in your questions as text, not as an image. Images are hard to read, cannot be copied to the clipboard, and are useless to sight impaired users. If you edit your question and replace the image with text, your question may be reopened and downvotes may be retracted. – VGR Aug 24 '23 at 13:32

0 Answers0