Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1.   class Grupa{
  2. //(...)
  3.  public void read() throws IOException, FileNotFoundException{
  4.    
  5.        Scanner odczyt = null;
  6.        odczyt = new Scanner(new BufferedReader(new FileReader("punkty.txt")));
  7.     int i = 0;
  8.        while(odczyt.hasNext()){
  9.         stud[i].nazwisko = odczyt.next();
  10.         stud[i].punkty = odczyt.nextInt();
  11.         i++;
  12.     }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement