Question: Java Computer Science question on Area. I think you need to add ArrayLists to solve the problem. Thank you to whoever helps me. Add the

Java Computer Science question on Area. I think you need to add ArrayLists to solve the problem. Thank you to whoever helps me.
Add the method area() which returns the area of a Shape object. Use the formula for area of a convex polygon when making the code. What it should show: If Vals_X contains (2.0, -4.0, 5.0) and Vals_Y contains (27.0, 6.0, 1.0), then the correct implementation of area() would return 162.0. Multiply the last x by the first y and the first y by the last x in your calculation
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
