1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package 함수1.형성평가01;
 
public class Main {
    
    public static void method() {
        System.out.println("@@@@@@@@@@");
    }
    
    public static void main(String[] args) {
        System.out.println("first");
        method();
        System.out.println("second");
        method();
        System.out.println("third");
        method();
    }
}
 
 

 

> @를 10개 출력해주는 함수를 생성합니다.

> main 메소드에서 문제에서 제시해주는 문구와 @를 출력해주는 메소드를 사용하여 출력하여 줍니다.