Hey guys I am having a hard time creating a class to model a line segment.

This class should include a constructor, accessor and mutator methods. It should also include a method that calculates the length of the line segment, which can be calculated using the distance formula and it also must calculate the midpoint formula. It must also have a class to demonstrate the LineSegment.java class.

I would appreciate it if someone could help me with this task.

thanks