how to use if else syntax in java