Insert the missing part to print the number 8 in main
, by using a specific keyword inside myMethod
:
static int myMethod(int x) {
@(6) 5 + x;
}
public static void main(String[] args) {
System.out.println(myMethod(3));
}
static int myMethod(int x) {
return 5 + x;
}
public static void main(String[] args) {
System.out.println(myMethod(3));
}