Question: in java (single LinkedList) Create a Trial class to keep track of a Simple Harmonic Motion trials and their results. A Simple Harmonic Motion Trial

in java (single LinkedList) in java (single LinkedList) Create a Trial class to keep track of

Create a Trial class to keep track of a Simple Harmonic Motion trials and their results. A Simple Harmonic Motion Trial have the following variables: - Mass (float): - Distance (integer): - day (integer): each Trial in one day - Elongation (integer) - Springtype (string) The class should use simple basics of a single linked list to keep the trials. The Triallinkedlist class should support the following methods: 1. add (trail): insert trail to the end of the list 2. get (day): get the trail with the given day 4. remove (day): remove the trail in the given day 5. print (day): list all trails in a given day Write a Main class which tests all the methods of your Triallinkedlist class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!