Results 1 to 3 of 3
  1. #1
    RSYR is offline Member
    Join Date
    Nov 2009
    Posts
    9
    Rep Power
    0

    Default Football League Table - Idea's?

    okay so far i've made a program that reads in results from a .txt file and outputs the results re-arranged with and such. Now i have an extension assignment where i would need to create a league table based on the scores. I'm unsure of how to store points and how i would add scores to that specific team. I'll post my code thus far so you can see what i've done.

    Removed code due to other students googling it and copying my code.

    Would appreciate your idea's on how to do this and/or specific java elements that i should research in order to accomplish this. Any sort of input will help thanks

    Thanks
    Last edited by RSYR; 12-16-2009 at 07:01 PM. Reason: Removed code due to other students googling it and copying my code.

  2. #2
    ibrafiqb is offline Member
    Join Date
    Nov 2010
    Posts
    3
    Rep Power
    0

    Default

    could you repost your code? We are doing something very similar at work and I would just like to see how you focused on a specific team and gathered data for that specific team..such as games played, games won/drawn/lost etc

  3. #3
    tashimoto is offline Member
    Join Date
    Sep 2010
    Location
    Oregon, usa
    Posts
    69
    Rep Power
    0

    Default

    It's too bad others couldn't figure out their own solution and copied yours instead. It makes it harder for the forum folks to see what you've done so far and to help.

    Here goes anyway:
    You could create a Team class that contains all the information needed for each team (example: int score, string name...). Then create an array of Team objects.

    Hope this helps!
    Chris

    Just realized this was an old post! @ ibrafiqb, you could try the same as what I posted above.
    Last edited by tashimoto; 11-24-2010 at 07:51 PM. Reason: just realized this was an old post!

Similar Threads

  1. add a table
    By anvi123 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-19-2009, 10:06 PM
  2. Table display
    By gissah in forum NetBeans
    Replies: 1
    Last Post: 06-25-2009, 09:20 AM
  3. football league
    By university in forum New To Java
    Replies: 2
    Last Post: 11-06-2008, 06:14 AM
  4. Inserting into a table (Example)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-06-2008, 10:25 AM
  5. Table Help
    By CoOlbOyCoOl in forum NetBeans
    Replies: 1
    Last Post: 05-06-2007, 05:19 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
  •