DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: stack

  1. #1
    Join Date
    Feb 2010

    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
    San Bernardino County, California
    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 .. also look at the tutorial

  3. #3
    Join Date
    Apr 2007
    Sterling Heights, Michigan

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, 04: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, 09: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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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