title: How to create a program that returns a boolean value without printing it?
body: <p>So I have a task to create a program that can tell which kind of triangle it is based on the numbers entered. Everyother program we have done was done using a text file pop up in our compiler this one however he wants to be done through the program its self, I think. So for example one of the methods he wants is Public Boolean isTriangle. I however am unsure how to add this to a class, everything done up into this point has been done in one block. I will paste what I have although I know a lot of it is wrong. Honestly I am very lost and could use any guidance. He wrote the Public boolean thing on the hand out so I think it is right but I get an identifier expected error. I know this is probably convoluted and I am missing base knowledge. Thank you so much for any help</p>
  
  <pre><code>{
        public Triangle( double a, double b, double c)
      {
  
          boolean isTriangle, isScalene, isEquilateral, isRight, isIsosceles ;
  
          isTriangle = (a+b)&gt;= c &amp;&amp; (a+c)&gt;= b &amp;&amp; (c+b)&gt;= a ;
          isScalene = (a != b) || (b != c) || (a != c) ;
          isEquilateral = ( a == b ) &amp;&amp; ( c == b );
          isRight = (Math.pow(a,2)) + (Math.pow(b,2)) == Math.pow(c,2);
          isIsosceles = ( a == b) || ( a == c) || ( b == c );//
  
  
      Public boolean isTriangle ()
     { if ( isTriangle == true)
  
      }
  }
  </code></pre>