Java - COMO HACER PARA QUE ME RECORRA UNA TABLA DENTRO DE UN ARCHIVO .DAT

 
Vista:

COMO HACER PARA QUE ME RECORRA UNA TABLA DENTRO DE UN ARCHIVO .DAT

Publicado por kike (1 intervención) el 17/09/2018 01:04:15
Quien me puede colaborar para que me imprima dentro de una tabla de posiciones de futbol que equipo recibio mas goles en contra y cuantos marco.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
 
public class Football
{
 
    public static void main(String[] args) throws IOException
    {
 
        String archivo;
 
        FileReader f = new FileReader("football.dat");
        BufferedReader b = new BufferedReader(f);
 
        while((archivo = b.readLine())!=null)
       {
 
            System.out.println(archivo);
        }
 
        b.close();
    }
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder