Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Palindrome

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Palindrome

    Hi everyone, Im a newbie in java im having problem solving this java problem. Can anyone please help me?

    A palindrome is a string which reads the same forward as it does backward, like ABCDCBA. You are to create a program that takes the string in input[0] as input, determines if it is a palindrome, and displays a message stating that it is or is not a palindrome.
    Some rules about palindromes:
    1. Capitalization does not count; ABCba is a palindrome.
    2. Spaces do not count. Ab cBa is a palindrome.
    3. Punctuation does not count. A’bc;BA is a palindrome.
    If input[0] is the string “Madam I’m Adam”, your program should display:
    “Madam I’m Adam” is a palindrome.
    If input[0] is the string “Madam I’m not Adam”, your program should display:
    “Madam I’m not Adam” is not a palindrome.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Palindrome

    Do you have any specific questions about your assignment?
    Please post your code and any questions about problems you are having.

    What have you tried?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Testing for a Palindrome
    By ryan.sampson in forum Algorithms & Recursion
    Replies: 12
    Last Post: November 6th, 2011, 08:01 PM
  2. Palindrome program help
    By timm1371 in forum Algorithms & Recursion
    Replies: 2
    Last Post: October 13th, 2011, 09:31 AM
  3. Palindrome
    By mag12203 in forum Algorithms & Recursion
    Replies: 13
    Last Post: December 20th, 2010, 08:28 PM
  4. Palindrome Stacks
    By mgutierrez19 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 7th, 2010, 03:05 AM
  5. Check for palindrome numbers
    By SnooSnoo in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 4th, 2010, 06:11 PM