1
Answer

reading from a text file and store it into an array JAVA

Hello guys!

I'm new in JAVA programming and I have a problem.
I have a text file with multiple lines (a line looks like this "sugar;23;45") and I want to extract the numbers from each line make a sum with column 2 + column 3 and then store each result in an array.

The output should look as a table.


How could I do this? Can anyone help me?
Answers (1)