Max of two integers

Report a typo

Write a lambda expression that accepts two integer arguments and returns the maximum of them.

Try not to use the Math library.

Solution format. Submit your lambda expression in any valid format with ";" at the end.

Examples: (x, y) -> x + y; (x) -> { return x; };

Sample Input 1:

1 3

Sample Output 1:

3
Write a program in Java 17
import java.util.function.IntBinaryOperator;

class Operator {

public static IntBinaryOperator binaryOperator = // Write your code here
}
___

Create a free account to access the full topic