Results 1 to 2 of 2
Thread: ArrayList
- 01-12-2008, 06:55 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 15
- Rep Power
- 0
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 £10, juniors pay half of the costs, matures pay the full cost.
Can you please help me to do this method
ThanksLast edited by kizilbas1; 01-12-2008 at 06:58 PM.
- 01-12-2008, 08:48 PM #2
Member
- Join Date
- Jan 2008
- Posts
- 24
- Rep Power
- 0
Similar Threads
-
Java Project Trouble: Searching one ArrayList with another ArrayList
By BC2210 in forum New To JavaReplies: 2Last Post: 04-21-2008, 11:43 AM -
ArrayList
By ramitmehra123 in forum New To JavaReplies: 1Last Post: 02-07-2008, 12:47 AM -
ArrayList
By kizilbas1 in forum New To JavaReplies: 11Last Post: 12-05-2007, 07:30 PM -
New to arraylist
By kleave in forum New To JavaReplies: 2Last Post: 11-19-2007, 06:45 PM -
Help ArrayList.add()
By eNine in forum New To JavaReplies: 2Last Post: 08-06-2007, 01:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks