Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

how to slove this in java visual programing image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions

Question

What factors affect occupational accidents?

Answered: 1 week ago

Question

What is the environment we are trying to create?

Answered: 1 week ago