File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

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

Joined: Oct 29, 2001
Posts: 9189

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.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: List entry code
It's not a secret anymore!