This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes List entry code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

List entry code

Chris Lavery
Ranch Hand

Joined: Nov 30, 2004
Posts: 54
i am trying to create code that will create a most recently used menu with a mximum of 10 items. it also must not allow for the same file to be noted more than once and every time an item is opedned it goes to the top of the list and the others drop down a place.
my problem so far is withthe constructor.
the following are my fields:

// --------------- FIELDS --------------

private static final int MAX_ITEMS = 10;
private int i;

Cansomeone please help with a constructor
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Please don't post the same question in more than one forum. Someone may waste their valuable time answering your question here when Stan is already on the case in the Beginner's forum.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
jQuery in Action, 2nd edition
 
subject: List entry code
 
Similar Threads
assistance with javadoc
This in constructor
code for a recently used menu
Address Book Java Issues
SCJP5.0 passed!!