Question: how to slove this in java visual programing 2. The class Train: Implement the class Train implementing Serializable. All the Objects of this class will
2. The class Train: Implement the class Train implementing Serializable. All the Objects of this class will be stored in the file "Train.ixt". 3. The class Admin: The "Add Train" GUI is described as follows: In order to add a train to the "Train.txt" file, the admin needs to enter an id. The id is unique, so before adding the train we need to check if there is no other train in the file with the same id. The Admin should choose two different stations and define the maximum number of passengers that could take the train. Oherwise, if the departure station and the arrival station are equal of the "Max Passengers" is not specified, the following message will appear: If all the inputs fields are well and correctly given, an Object Train will be added to the file and a message will appear by the system
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
