Examlex

Solved

Write a Method Called IsPalindrome That Accepts a String as a Parameter

question 37

Short Answer

Write a method called isPalindrome that accepts a String as a parameter and returns true if the String is a palindrome, and false otherwise. You may assume that the entered String consists entirely of lowercase letters (meaning it contains no numbers, spaces, punctuation, etc). Hint: write code that creates a new string that is the original string reversed, and then check to see if the two strings are equal.


Definitions:

Endorsement

The act of publicly supporting or approving something, or a legal amendment to a document or agreement, often seen in insurance policies or bank checks.

Forged

Created, altered, or imitated with the intent to deceive; typically refers to documents, signatures, or art.

Negligence

The failure to take reasonable care to avoid causing injury or loss to another person, resulting in legal liability for the damages caused.

Stored-Value Card

A plastic card that contains data regarding the value of the card, thereby allowing EFTs to be made.

Related Questions