Question: what is the output? public class Class1 { } } public static void main(String[] args) { int i = mystery (6); System.out.println(mystery is +
what is the output?
public class Class1 { } } public static void main(String[] args) { int i = mystery (6); System.out.println("mystery is " + i); } public static int mystery (int n) { if (n
Step by Step Solution
There are 3 Steps involved in it
Step 1 Algorithm 1 Create a method called mystery that takes in an integer n 2 If n is less than ... View full answer
Get step-by-step solutions from verified subject matter experts
