Why this java can run? : JAVA If should have {} except there is only one line under if. 

But why this code can run on my computer?


 int x=1;
 int y=1;


        if(x<=4)
            if(y>=4)
                System.out.println("%%%");
            else
                System.out.println("+++");
            System.out.println("***");


[Here is what it looks like on my IDE][1]
.

And everything runs good. Here is the result.(under it loading other resources don't care about that. I just modified some of my code to try out the code as soon as possible.)

[here is the result][2]


  [1]: https://i.stack.imgur.com/6QnA5.png
  [2]: https://i.stack.imgur.com/KWvKQ.png