Palindrome program using stack and queue in java

A palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward. Allowances may be made for adjustments to capital letters, punctuation, and word dividers. Famous examples include "A man, a plan, a canal, Panama!", "Amor, Roma", "race car", "stack cats", "step on no pets", "taco cat", "put it up", "Was it a car or a cat I saw?" and "No 'x' in Nixon"
--wiki--


Output:
C:\Users\Achchuthan\Desktop>java Palindrome
Enter Your input string expression : MADAM
That is a palindrome.

Popular posts from this blog

The n-queens problem in Java

Convert infix to postfix using stack in Java