Question
Create a class that can be used to test data structure - similar to the StudentA.java example found shown below: The following are requirements for
Create a class that can be used to test data structure - similar to the StudentA.java example found shown below:
The following are requirements for this homework: Unique index integer fields Use at least 5 other fields of various, including at least one of each of String, int and double types. o assume that the String's have no spaces within them Write a method that will create an array of N random instances of this class, where N is an integer parameter to this method Provide a toString method that will format an instance of this class nicely Provide appropriate constructors Write methods that will write and read text files of this class o to make this easy, assume that the first line of the file is the number of elements in the file o make the file one line per entry o use spaces as field delimiters in the files o use the toString method of the class to write to the file Provide a good GUI interface to control and test this class, at a minimum: o use buttons to control the functions available o use JFileChoose for selecting input and output files o use a JTextArea and JScrollPane to create a scrolling text area for output o the window should resize nicely - use BorderLayout with the text area in the center
StudentA.java import java.util.Scanner; import java.util.ArrayList; lass StudentA lements ComparableStep 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