โ Back to Methods
Question 352
Minimum of Two Method
Minimum of Two Method
Write a methodmin(int a, int b)that returns the smaller of the two values. Call it with8and3and print the result: 3 UseSystem.out.println.
Expected Output:
3
Topics:
Methods
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.