# 중첩 반복문 println(); 이 부분을 왜 첫번째 for 문안에 넣어야 할까요? #### CODE <a class='btn btn-default' href='/codes/77949'>Link</a> ``` public class Matrix{ public static void main(String [] args) { int r = Integer.parseInt(args[0]); int c = Integer.parseInt(args[1]); result(r, c); } public static void result(int rowMax, int columnMax) { for (int i = 0; i < rowMax; i++) { for (int j = 0; j < columnMax; j++) { System.out.printf("* "); } } System.out.println(); } } ``` #### INPUT ``` 3 7 ``` #### OUPUT ``` * * * * * * * * * * * * * * * * * * * * * ```
## 첫 번째 for 문에 println()을 넣은 것과 넣지 않은 결과를 직접 비교해보세요