Answer the question
In order to leave comments, you need to log in
How to work with data from a file?
Hello,
I need advice. I have a text file like:
Karin Novakova
math
0
11
13
Radmila Svobodova
computers
0
12
14
Diana Novotna
math
0
13
15
Answer the question
In order to leave comments, you need to log in
Mankind has come up with a cool thing - OOP. Java is perhaps its quintessence.
public class Person {
private String name;
private String discip; // или Enum
private List<Integer> numbers; // Или массив, если уверены в количестве чисел на 146% и целеполагание позволяет
....... getters/setters
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question