|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPalindrome
public class Palindrome
The Palindrome Java application illustrates the use of a stack
and a queue in the same program to determine whether a line is a
palindrome. The program ignores everything except alphabetic letters, and it
ignores the difference between upper- and lowercase letters.
| Constructor Summary | |
|---|---|
Palindrome()
|
|
| Method Summary | |
|---|---|
static boolean |
is_palindrome(java.lang.String input)
The return value is true if and only if the input string is a palindrome. |
static void |
main(java.lang.String[] args)
The main method prompts the user for a strings. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Palindrome()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static boolean is_palindrome(java.lang.String input)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||