Results 1 to 2 of 2

Thread: ArrayList

  1. #1
    kizilbas1 is offline Member
    Join Date
    Nov 2007
    Posts
    15
    Rep Power
    0

    Default ArrayList

    the fields and constructor have been defined as follow;

    public class Meeting
    {

    private String code;
    private Date raceDate;
    private double cost;
    private int points;
    private double totalCosts = 0;
    private String venue;
    private int places;

    private ArrayList<Student> team ;

    public Meeting(String cod, String ven, int plac, int poin, double cos, int d, int m, int y )
    {
    code = cod;
    venue = ven;
    places = plac;
    points = poin;
    cost = cos;
    raceDate = new Date(d, m, y);
    team = new ArrayList<Student>();

    and this is what i have been asked tp do;

    signUp()which will allow a student to sign up for the race meeting. When a student signs up for the meeting, their achievements points are incremented by the attendance points of the race meeting, they are added to the team and the cost for the meeting is added to the contest's total costs. Seniors pay &#163;10, juniors pay half of the costs, matures pay the full cost.

    Can you please help me to do this method

    Thanks
    Last edited by kizilbas1; 01-12-2008 at 06:58 PM.

  2. #2
    afsina is offline Member
    Join Date
    Jan 2008
    Posts
    24
    Rep Power
    0

    Default

    You havent described the problem completely. what is an attendance point? where is the contest defined?

Similar Threads

  1. Replies: 2
    Last Post: 04-21-2008, 11:43 AM
  2. ArrayList
    By ramitmehra123 in forum New To Java
    Replies: 1
    Last Post: 02-07-2008, 12:47 AM
  3. ArrayList
    By kizilbas1 in forum New To Java
    Replies: 11
    Last Post: 12-05-2007, 07:30 PM
  4. New to arraylist
    By kleave in forum New To Java
    Replies: 2
    Last Post: 11-19-2007, 06:45 PM
  5. Help ArrayList.add()
    By eNine in forum New To Java
    Replies: 2
    Last Post: 08-06-2007, 01:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •