public class Main { public static void main(String[] args) { int result = add(2, 3); System.out.println(result == 5 ? "pass" : "fail"); } static int add(int a, int b) { // TODO: return a + b } }
Output
Click Run to execute, or Check to validate.
Ask questions or share tips about this tutorial
Sign in to join the discussion