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
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
Get step-by-step solutions from verified subject matter experts
