In the event that you need some tips for doing this project, refer to the following links--
http://www.daniweb.com/forums/thread135648.html
http://www.daniweb.com/forums/thread135617.html
http://www.daniweb.com/forums/thread135539.html
--
and as for your error
public Object getItem(){
return item;
}
Object's cannot be used for integral/floating operations like '+' or '>'
You'll need to do something like this in order for it to work--
while(curr != null && numEle > (Integer)curr.getItem())
-- where it will down-cast the Object to its original type (Integer).
Now, behind the scenes the Integer object returned from the cast is "unwrapped" into an integer primitive type and replaced during the operation.
Unfortunately you don't get to see this. Also, don't try to cast an Object directly into an int primitive, because the compiler will not see a generic "Object" as a possible wrapper-class.