[Solved] Java Square Class [closed]
Change your loop into this: for (int i=0; i<width; i++) { for (int j=0; j<width; j++) { System.out.print(“*”); } System.out.println(); } As said, remove semicolons after loops because this makes your loop end immediately without arguments. i should be set to 1 so that it would reiterate in the correct number of times And edit … Read more