Search:

Type: Posts; User: tinker99

Search: Search took 0.12 seconds.

  1. Replies
    3
    Views
    791

    Re: Decimal formatting?

    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,...
  2. Replies
    3
    Views
    791

    Decimal formatting?

    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...
  3. Re: help creating program for area and perimeter of triangle

    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...
  4. help creating program for area and perimeter of triangle

    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);
    ...
Results 1 to 4 of 4