With a loop that counts 1 to numStars and
prints a * for each iteration.
Here is the answer to the little problem. The parts of the program that don't affect it have been (temporarily) cleared away.
// collect input data from user
System.out.print( "How many Stars per Row? " );
numStars = scan.nextInt() ;
int star = ;
while ( star <= )
{
System.out.print("*");
}
System.out.println();
Need I ask? Fill in the blanks so that numStars stars are printed.