1. What is the output of the following program?
public class Exercise8
{
public static void main(String[] args)
guessOutput(7654321);
} // end main
public static void guessOutput(int n)
if (n > 0)
System.out.print(n % 10 + " ");
guessOutput(n / 10);
} // end if
} // end guessOutput
} // end Exercise8
2. Identify and fix the errors in the following program:
public class Exercise9
if (n != 0)
System.out.println(n);
} // end Exercise9
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here