Write a Java application that asks the user to enter a word and then determines if this word is a palindrome. A palindrome is a word that is the reads the same when spelt backwards as it does forwards. For example, the words noon and madam are palindromes. Note, you need to ignore the case of the individual letters in the word should the user input the word in upper and lowercase. So, for example, madam, MadAm, and mAdaM are considered the same word and palindromes.
king_786
0
Newbie Poster
Recommended Answers
Jump to PostSo, which part are you having trouble with?
Jump to PostHave you tested your code?
Jump to Postyeah finally got it ... i have checked it (but not rigorously ) and its working .
public class NewClass { public static void main (String [] args) { String str1 = new String("madame"); int l,l1; boolean b = true ; char c1,c2; l1 = l = …
All 11 Replies
king_786
0
Newbie Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
rahul8590
71
Posting Whiz
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
rahul8590
71
Posting Whiz
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
rahul8590
71
Posting Whiz
tpjava
0
Newbie Poster
g4java
0
Newbie Poster
tpjava
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.