Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Asterisks {
- public static void SquareOfAsterisks(int side) {
- for (int row = 1; row <= side; row++) {
- for (int column = 1; column <= side; column++) {
- System.out.println("*");
- }
- System.out.println();
- }
- }
- public static void main(String[] args) {
- SquareOfAsterisks(4);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement