What would the program do if the user asked for a negative number of stars per line?
Each line would consist of nothing but the end of line character that
prints.
The inner loop would not execute even once.
System.out.println()
For your amusement and entertainment here is a JavaScript version of the program:
Of course, it would be good to copy the actual Java (previous page) to a file and to compile and run it.
On a clear evening, out in the country, far from city lights, about 6,000 stars are visible. Enter values so the program prints that many stars.
(If you ask for for than 70 stars per line, the excess stars for each line will print on a second line.)