stack


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: stack

  1. #1
    Join Date
    Feb 2010
    Posts
    2

    Smile 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

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    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

  3. #3
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    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

  1. Stack Program
    By Mingk in forum C++
    Replies: 3
    Last Post: 04-10-2007, 10:31 AM
  2. Exception & stack unwinding
    By rssmps in forum C++
    Replies: 1
    Last Post: 01-19-2007, 03:46 PM
  3. Replies: 2
    Last Post: 09-11-2006, 01:15 PM
  4. Queue Stack Question
    By trixma in forum Java
    Replies: 4
    Last Post: 08-14-2005, 01:03 PM
  5. 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center