thekingjava123
May 6th, 2010, 01:16 AM
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!
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!