Results 1 to 2 of 2
  1. #1
    Toluwase is offline Member
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default Stack operations

    Please, how is it possible to insert different type of elements in stack?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,051
    Blog Entries
    7
    Rep Power
    23

    Default Re: Stack operations

    Just because the Object class is the mother of all classes and because Java uses single inherticance of classes, using a stack of Objects can do the job.

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. Array Operations
    By knoxb in forum New To Java
    Replies: 2
    Last Post: 02-10-2012, 08:06 AM
  2. Replies: 2
    Last Post: 01-14-2012, 09:56 PM
  3. Operations on JList
    By africanhacker in forum AWT / Swing
    Replies: 7
    Last Post: 03-21-2011, 05:15 PM
  4. Stack push/pop/peek operations
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-29-2008, 10:03 AM
  5. String operations..
    By sireesha in forum New To Java
    Replies: 4
    Last Post: 12-14-2007, 03:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •