Complete the code to check if a is greater than b.
boolean result = a [1] b;The '>' operator checks if the left value is greater than the right value.
Complete the code to check if x is less than or equal to y.
boolean check = x [1] y;The '<=' operator checks if the left value is less than or equal to the right value.
Fix the error in the code to check if num1 is not equal to num2.
if (num1 [1] num2) { System.out.println("Not equal"); }
The '!=' operator checks if two values are not equal.
Fill both blanks to create a condition that checks if value is between 10 and 20 inclusive.
if (value [1] 10 && value [2] 20) { System.out.println("Within range"); }
The condition checks if value is greater than or equal to 10 and less than or equal to 20.
Fill all three blanks to create a map that stores keys as uppercase strings and values greater than zero.
Map<String, Integer> filtered = data.entrySet().stream()
.filter(e -> e.getValue() [1] 0)
.collect(Collectors.toMap(
e -> e.getKey().[2](),
e -> e.getValue() [3] 0
));The filter keeps entries with values greater than 0, keys are converted to uppercase, and values are incremented by 0 (no change).