Java program to check whether a given string is a palindrome
KW.java
Output
kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW ——————————————————————————————————————————— Program to check string is palindrome | not ——————————————————————————————————————————— Enter the string RADAR RADAR is a palindrome ——————————————————————————————————————————— kodingwindow@kw:~$ javac KW.java
kodingwindow@kw:~$ java KW ——————————————————————————————————————————— Program to check string is palindrome | not ——————————————————————————————————————————— Enter the string WIN WIN is not a palindrome ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
Java program to perform the string operations
Java implementation of the contentEquals method
Java implementation of the equals method
Advertisement