I think that's my problem. I don't understand how to use it in this code.
--- Update ---
would it be something like this?
JOptionPane.showMessageDialog(null, formatter.format(a, b,...
Type: Posts; User: tinker99
I think that's my problem. I don't understand how to use it in this code.
--- Update ---
would it be something like this?
JOptionPane.showMessageDialog(null, formatter.format(a, b,...
my program is supposed to include The three sides of the triangle formatted to two decimal places The perimeter formatted to one decimal place The area formatted to one decimal place The unformatted...
I went ahead and reorganized and simplified, but I am still having some problems. Here is the new code:
import java.util.Scanner;
public class Triangle {
public static void main...
import java.lang.Math;
public class triangle
{
double area; double s;
public double findArea(double sideA, double sideB, double sideC);
{
s= 0.5 *(sideA + sideB + sideC);
...