Write a public static method named starPrinter that will take an int as a parameter and
print lines of stars as shown below.

The header of the method will be public static void starPrinter(int n) .

e.g.
If the value of n is 5, then the method should print
*
***
*****
*******
*********

If the value of n is 3, then the method should print
*
***
*****

Please help!