Maybe something like this :O
Code:
public class Stars{
char star = '*';
char[][]st;
public Stars(int cnl1) {
st = new char [cn1][cn1];
for (int i=0; i < cnl1;i++)
for (int j = 0; j <cn 1;j++)
st [i][j] =star ;
}
void starsShow() {
for (int i=0; i < st.length;i++)
for (int j = 0; j < st.length;j++){
System.out.print(st[i][j]);
if(j==st.length-1)
System.out.println("");
}
}
}
Not sure if you will get something like this(1 year has past when i done such programms in school, so i am not sure^^):
*
**
***
****
*****
****
***
**
*