Hello, I am a new Java learner. I would like to develop one model by using Java. In that model, there are many files to read. I want to write a method in Java to read a file and store the data in array(s). Later, I just only call that method to read other files. Would you please help me to write a code to read the data in the following formats:
First format (for example, separated by lines): store one column of the data in one array
11.1
22.2
33.3
...
Second format (for example, separated by spaces): store one column of the data in one array, so there are three arrays
1.1 11.1 111.1
2.2 22.2 222.2
3.3 33.3 333.3
... ... ...
First format (for example, separated by lines): store one column of the data in one array
11.1
22.2
33.3
...
Second format (for example, separated by spaces): store one column of the data in one array, so there are three arrays
1.1 11.1 111.1
2.2 22.2 222.2
3.3 33.3 333.3
... ... ...
Comment