title: The operator > is undefined for the argument type(s) boolean, double
body: <p>I am a new programmer, so sorry if this is really basic. I have looked around for this website for an answer, I could find very similar questions, but none was what I needed. </p>
  
  <pre><code>import java.util.Scanner;
  
  public class sortThreeIntegers 
  {
      public static void main (String[] args) 
          {
          Scanner input = new Scanner(System.in);
          Scanner input2 = new Scanner(System.in);
          Scanner input3 = new Scanner(System.in);
          System.out.println("Enter the first number: ");
          System.out.println("Enter the second number: ");
          System.out.println("Enter the third number: ");
  
          double firstNumber = input.nextDouble();
          double secondNumber = input2.nextDouble();
          double thirdNumber = input3.nextDouble();
  
          if (firstNumber &gt; secondNumber &gt; thirdNumber == true) 
          {
              System.out.println(firstNumber + ", " + secondNumber + ", " + thirdNumber);
          }
          else if (firstNumber &gt; thirdNumber &gt; secondNumber == true) 
          {
              System.out.println(firstNumber + ", " + thirdNumber + ", " + secondNumber);
          }
      }
  }
  </code></pre>
  
  <p>Note: This is in the middle of me writing the code, I am not finished with this. </p>
  
  <p>Why am I getting the error "The operator > is undefined for the argument type(s) boolean, double"? Again, sorry if this is really simple. </p>