1. Identify and fix the errors in the following program:
public class Exercise10
{
public static void main(String[] args)
Exercise10 ex = new Exercise10();
System.out.println(ex);
} // end main
public Exercise10()
} // end default constructor
} // end Exercise10
2. Consider the method displayRowOfCharacters that displays any given character the specified number of times on one line. For example, the call
displayRowOfCharacters('*', 5);
produces the line
*****
Implement this method in Java by using recursion.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here