title: Nest If Getting no output
body: <p>When compiled and run, i get no output what so ever. Trying to get the output recommended when the cost is less than 100 and has a rating of 4. if else print save your money</p>
  
  <pre><code>System.out.print("Enter cost: ");
  double cost = input.nextDouble();
  
  System.out.println("Enter a Star value between 1-4");
  int rating = input.nextInt();
  
  if (cost &lt; 100){
      if (rating == 4 )
          System.out.println("Recommended");
  }
  else
      System.out.println("Save your money");
  </code></pre>