Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started