Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Grupa{
- //(...)
- public void read() throws IOException, FileNotFoundException{
- Scanner odczyt = null;
- odczyt = new Scanner(new BufferedReader(new FileReader("punkty.txt")));
- int i = 0;
- while(odczyt.hasNext()){
- stud[i].nazwisko = odczyt.next();
- stud[i].punkty = odczyt.nextInt();
- i++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement