Question: Write this in Java. say i have a file called file.txt that looked like this: Dunn Sean 31111 Duong Geoffrey 29922 Fazekas Nicholas 31100 Prezioso

Write this in Java.

say i have a file called "file.txt" that looked like this:

 Dunn Sean 31111 Duong Geoffrey 29922 Fazekas Nicholas 31100 Prezioso Stefano 22223 Puvvada Mohana 11224

and i have an object class called Student, with three String fields lastName, firstName, and ID.

i want to read in file.txt from another class (preferably using BufferedReader) and store each line in the file as a Student in a Student array

(example: first line gets stored as ("Dunn" , "Sean" , "31111") in a Student array students as students[0])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!