Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-12-2008, 07:55 PM
Member
 
Join Date: Nov 2007
Posts: 15
kizilbas1 is on a distinguished road
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

Thanks

Last edited by kizilbas1 : 01-12-2008 at 07:58 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-12-2008, 09:48 PM
Member
 
Join Date: Jan 2008
Posts: 24
afsina is on a distinguished road
You havent described the problem completely. what is an attendance point? where is the contest defined?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Project Trouble: Searching one ArrayList with another ArrayList BC2210 New To Java 2 04-21-2008 12:43 PM
ArrayList ramitmehra123 New To Java 1 02-07-2008 01:47 AM
ArrayList kizilbas1 New To Java 11 12-05-2007 08:30 PM
New to arraylist kleave New To Java 2 11-19-2007 07:45 PM
Help ArrayList.add() eNine New To Java 2 08-06-2007 02:13 PM


All times are GMT +3. The time now is 05:14 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org