Results 1 to 2 of 2
- 12-11-2012, 11:25 PM #1
Member
- Join Date
- Dec 2012
- Posts
- 2
- Rep Power
- 0
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
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
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;
try
{
//create FileInputStream object \
FileInputStream fin=new FileInputStream(file);
bin=new BufferedInputStream(fin);
while (bin.available()>0)
{
System.out.print((char)bin.read());
}
}
catch(FileNotFoundException e)
{
System.out.println("File Not found"+e);
}
catch(IOException ioe)
{
System.out.println("Exception while reading file"+ioe);
}
finally
{
try
{
if(bin!=null);
bin.close();
}catch(IOException ioe)
{
System.out.println("Error while closing the stream:"+ioe);
}
}
}
}
- 12-12-2012, 04:00 AM #2
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 http://www.java-forums.org/forum-gui...w-members.html and BB Code List - Java Programming Forum and edit your post accordingly.
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
Similar Threads
-
If string does not match a number of strings problem
By Interista in forum New To JavaReplies: 2Last Post: 11-17-2011, 05:49 PM -
How do I reach my goal?
By DanishKid in forum New To JavaReplies: 1Last Post: 07-29-2011, 01:36 AM -
C++ is my goal... How to get there?
By JoshNerd557 in forum New To JavaReplies: 10Last Post: 04-23-2011, 03:07 AM -
if it is floating point number
By Stephen Douglas in forum New To JavaReplies: 26Last Post: 07-06-2010, 10:17 AM -
number of floating point
By mohammad8065 in forum Advanced JavaReplies: 5Last Post: 12-28-2008, 10:41 AM
Bookmarks