| | |
need with homework
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Dec 2005
Posts: 2
Reputation:
Solved Threads: 0
hi, i need someone to look at my homework and give me comment where and how should i begain with.
Choose one of the stack implementations and implement a method with this specification:
Object itemAt (int n)
//precondition: 0<=n and n<size()
//postcondition: the return value is the item that is n from the top (with the top at n=0, the next at n=1 and so on). The stack is not changed
Throw a NoSuchElementException if the precondition is violated from (java.util.NoSuchElementException).
Choose one of the stack implementations and implement a method with this specification:
Object itemAt (int n)
//precondition: 0<=n and n<size()
//postcondition: the return value is the item that is n from the top (with the top at n=0, the next at n=1 and so on). The stack is not changed
Throw a NoSuchElementException if the precondition is violated from (java.util.NoSuchElementException).
http://www.daniweb.com/techtalkforum...cement9-2.html
Think for yourself and others will think with you.
Fail to think at all and others will pass you by.
Think for yourself and others will think with you.
Fail to think at all and others will pass you by.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- We only give homework help to those who show effort (Computer Science)
- Need help with Computer Science homework (Computer Science)
- Dynamic memory allocation homework (C++)
- Homework Help!! Priority Queue ?? (Computer Science)
Other Threads in the Java Forum
- Previous Thread: Need help on programming with bluetooth-enabled devices
- Next Thread: Not A Statement?
Views: 1344 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Java
-xlint android api apple applet application arguments array arrays automation binary block bluetooth chat class classes client code compile component database developmenthelp draw eclipse encode error event exception file fractal freeze game gameprogramming givemetehcodez graphics gui helpwithhomework html ide image input integer iphone j2me j2seprojects java javac javaprojects jmf jni jpanel julia lego linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number object online oracle print problem program programming project recursion scanner screen server set singleton size sms socket sort sql string swing system template test textfields threads time title transfer tree tutorial-sample update windows working






