Calculating Area Of Triangle In Java