Given the corner points of a triangle (x1, y1), (x2, y2), (x3, y3), compute the area.
Hint: The area of the triangle with corner points (0, 0), (x1, y1), and (x2, y2) is |x1 · y2 – x2 · y1| / 2.
Complete the following code:
public class Geometry
{
/**
A method to return the smaller of two integers
@param a, the first integer
@param b, the second integer
@return small, the smaller of the two
*/
public static double triangleArea(double x1, double y1,
double x2, double y2, double x3, double y3)
Need Help Writing an Essay?
Tell us about your assignment and we will find the best writer for your paper.
Write My Essay For MeWelcome to one of the most trusted essay writing services with track record among students. We specialize in connecting students in need of high-quality essay writing help with skilled writers who can deliver just that. Explore the ratings of our essay writers and choose the one that best aligns with your requirements. When you rely on our online essay writing service, rest assured that you will receive a top-notch, plagiarism-free A-level paper. Our experienced professionals write each paper from scratch, carefully following your instructions. Request a paper from us and experience 100% originality.


