Java Tutorial
- Runtime
- java 21.0.12
- Files
- 60 files · 24 KB
- Runs
- 50 runs
- Published
package sessionFour;public class LogicalOperator { public static void main(String[] args) { int age = 20; boolean hasId = true; System.out.println(age >= 18 && hasId); // true System.out.println(age < 13 || age > 60); // false System.out.println(!hasId); // false }}