Results 1 to 2 of 2
- 12-11-2012, 10:05 PM #1
Member
- Join Date
- Dec 2012
- Posts
- 2
- Rep Power
- 0
Hi I am New to JAVA.......... need URGENTLY to complete the program
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-11-2012, 11:24 PM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,546
- Rep Power
- 11
Re: Hi I am New to JAVA.......... need URGENTLY to complete the program
Duplicate. Reply at Need Help to get Number of Match played overall point goal scored/conced
Closing.
Similar Threads
-
Java Specialist urgently needed
By Syntax123 in forum Jobs OfferedReplies: 0Last Post: 11-19-2011, 08:39 PM -
Can anyone help me to complete this java calculation????
By double D in forum New To JavaReplies: 2Last Post: 04-23-2011, 03:27 PM -
Time it took to run and complete a program.
By AcousticBruce in forum IntelliJ IDEAReplies: 3Last Post: 12-17-2010, 05:31 PM -
need help urgently new to java
By deecaf in forum New To JavaReplies: 10Last Post: 07-04-2009, 04:47 AM -
Hibernate order by query thru java solution urgently reqd
By altaf in forum JDBCReplies: 0Last Post: 03-12-2008, 02:23 PM


LinkBack URL
About LinkBacks

Bookmarks