title: Triangle centroid code
body: <p>I am new to Java and I want to ask about code for calculating for the centroid of a triangle (by using POINT 2D class). Code that allows user to input x-coordinates, y-coordinates of the 3 vertices.</p>