-
stack
This one got me confuse
(3) reads a string from the key board
and stores it in a string variable named “istring”, (4) pushes each character of the string(except
blanks) onto a stack ADT, (5) pops each character off the stack into a new string variable named
“ostring”, (6) compares “istring”, without blanks, to “ostring” to determine if the string is a palindrome,
and (7) prints the input string, the input string without blank spaces, the output string, and a statement whether or not the input string is a palindrome or not
-
Sounds straight-forward to me. Why not write it out in steps with space between the numbered steps. Then fill in the space with a code module or method which will do what that step describes.
Is your question about using the Stack container? Take a look at the Java 6 documentation at java.sun.com .. also look at the tutorial
-
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
Similar Threads
-
Replies: 3
Last Post: 04-10-2007, 10:31 AM
-
Replies: 1
Last Post: 01-19-2007, 03:46 PM
-
By jennywongus in forum Java
Replies: 2
Last Post: 09-11-2006, 01:15 PM
-
Replies: 4
Last Post: 08-14-2005, 01:03 PM
-
Replies: 3
Last Post: 03-11-2001, 08:04 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks