If Condition With Range In Java