Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java application called StudentApplication with the following specifications: 1. The application has one data file (studentInfo.txt) and at least the following two source-
Write a Java application called StudentApplication with the following specifications: 1. The application has one data file (studentInfo.txt) and at least the following two source- code files: StudentApp.java (containing the main method) and Student.java 2. The studentInfo.txt file has just these three lines of data, without leading or trailing blank lines, formatted the following way: last name, first name, gpa 1. Hunter, Artemis, 2.7 2. Flowers, Flora, 3.3 3. Fields, Heather, 3.1 3. The main method in StudentApp.java contains only these three lines of code, exactly as written: 1. String fileName= "studentInfo.txt"; 2. List studentList = addStudentsToList(fileName); 3. System.out.println(studentList); 4. When the program is run, the output in the NetBeans console is should look exactly as follows, all on one line but without leading or trailing blank lines: 1. [lastName = Hunter; firstName = Artemis; gpa = 2.7, lastName = Flowers; firstName = Flora; gpa = 3.3, lastName = Fields; firstName = Heather; gpa = 3.1]
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