Results 1 to 2 of 2
  1. #1
    Ajay15 is offline Member
    Join Date
    Dec 2012
    Rep Power

    Default Need Help to get Number of Match played overall point goal scored/conced

    Write a program for displaying data of individual teams:

    team name, number of matches played, overall points, overall goals scored/ conceded, points in home matches, points in away matches, listing of match results against other teams

    The program should repeatedly read a team name from console and display the results to console. It should have options for setting the order in which match results are sorted, e.g. by date, by opponent name, or grouped into home and away matches.

    the data I need to fetch from " leagueResults2010-11.csv(as per the attachment)"for fetching am able to write the program but not able understand how to get on remaining output......

    My Code



    public class Leaguetable {

    public static void main(String [] args) throws Exception{
    //Create file object
    File file=new File("C://FileIO//leagueResults2010-11.csv");

    BufferedInputStream bin=null;
    //create FileInputStream object \
    FileInputStream fin=new FileInputStream(file);
    bin=new BufferedInputStream(fin);
    while (bin.available()>0)
    catch(FileNotFoundException e)
    System.out.println("File Not found"+e);
    catch(IOException ioe)
    System.out.println("Exception while reading file"+ioe);
    }catch(IOException ioe)
    System.out.println("Error while closing the stream:"+ioe);


  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Need Help to get Number of Match played overall point goal scored/conced

    Please go through the Forum Rules -- particularly the second paragraph. The other thread you started has been closed by another moderator.

    Please also go through the and BB Code List - Java Programming Forum and edit your post accordingly.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. If string does not match a number of strings problem
    By Interista in forum New To Java
    Replies: 2
    Last Post: 11-17-2011, 05:49 PM
  2. How do I reach my goal?
    By DanishKid in forum New To Java
    Replies: 1
    Last Post: 07-29-2011, 01:36 AM
  3. C++ is my goal... How to get there?
    By JoshNerd557 in forum New To Java
    Replies: 10
    Last Post: 04-23-2011, 03:07 AM
  4. if it is floating point number
    By Stephen Douglas in forum New To Java
    Replies: 26
    Last Post: 07-06-2010, 10:17 AM
  5. number of floating point
    By mohammad8065 in forum Advanced Java
    Replies: 5
    Last Post: 12-28-2008, 10:41 AM

Posting Permissions

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