Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23

Thread: stack program

  1. #21
    pinkx is offline Member
    Join Date
    Aug 2011
    Posts
    4
    Rep Power
    0

    Default

    hey guys thankx for ur replies
    so i will make a class called stack....
    it will implement an interface named Isortable stack
    ok
    im planning to use an array
    for the code <<E extends comparable<<E>> i will write code for comparing integers and that too in methods for the highest n the lowest ones
    and pop and push will just insert and remove elements from the stack.....
    peekmidelement will return the middle element

    i hope im right in my idea

  2. #22
    pinkx is offline Member
    Join Date
    Aug 2011
    Posts
    4
    Rep Power
    0

    Default

    Quote Originally Posted by Junky View Post
    ???

    6 is the largest value and it is either the first or last element. In no way is it the mid element.
    thank u i never noticed it :D

  3. #23
    pinkx is offline Member
    Join Date
    Aug 2011
    Posts
    4
    Rep Power
    0

    Default

    thank you guys
    i coded the program.... n it is working fine.

    thanks a lot

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Stack
    By kayln in forum Eclipse
    Replies: 0
    Last Post: 03-04-2011, 09:14 PM
  2. How big is the stack??
    By mgeno216 in forum New To Java
    Replies: 6
    Last Post: 03-04-2011, 09:04 AM
  3. Stack implementation
    By jefrazie in forum New To Java
    Replies: 3
    Last Post: 10-07-2009, 01:59 PM
  4. stack based program
    By hafizul in forum New To Java
    Replies: 5
    Last Post: 03-28-2009, 04:49 PM
  5. Need help please implementing a stack!
    By sfe23 in forum New To Java
    Replies: 0
    Last Post: 02-24-2009, 04:19 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
  •