Win a copy of Functional Reactive Programming this week in the Other Languages forum!
    Bookmark Topic Watch Topic
  • New Topic

List entry code

 
Chris Lavery
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic