Stars and More Stars

None of these methods will return anything. All of them end with the printing of a newline (i.e., System.out.println()).

1. Write printChars() that takes a character and an integer as its inputs and prints out a row of that many characters.

Example:
printChars('Q', 6);

prints:

QQQQQQ

2. Write printStars() that takes an integer as its input and prints out a row of that many stars.

Example:
printStars(5);

prints:

*****

3. Write printRowsOfStars() that takes an integer as its input and does this:

Example:
printRowsOfStars(5);

prints:

*
**
***
****
*****

4. Write printSolidDiamond() that takes an integer as its input and does this:

Example:
printSolidDiamond(4);

prints:

    *
   ***
  *****
 *******
  *****
   ***
    *

5. Write printHollowDiamond() that takes an integer as its input and does this:

Example:
printSolidDiamond(4);

prints:

    *
   * *
  *   *
 *     *
  *   *
   * *
    *