title: System.out.println() not printing anything.
body: <p>This code compiles, but doesn't print anything into the terminal.</p>
  
  <p>So my code is meant to compare the y co-ordinate of the robot with the y co-ordinate of the target.</p>
  
  <pre><code>public class Ex12 
  {
  
    private byte isTargetNorth(IRobot robot)
    {
  
      if (robot.getLocationY() &gt; robot.getTargetLocation().y) 
        {System.out.println("north");
        return 1;}
  
      else if (robot.getLocationY() == robot.getTargetLocation().y)
        {System.out.println("no");
        return 0;}
  
      else 
        {System.out.println("south");
        return -1;}
  
    }
  }
  </code></pre>