[Solved] Read each input of the line in Java


In this case it’s highly recommended if you add some code that you tried!
You have to follow the steps given below. Hope you would better understand if I don’t give you the code.

1) Create a scanner

2) Open the file

3) read the line

4) assign the read line into a string variable

5) close the file

6) Split the string with using a blank space (” “)

7) assign the splinted to an array

8) print out through Array

Mow you are done

solved Read each input of the line in Java