UpDownGame을 UpDownGame Test클래스와 run()메서드를 추가하여 리팩토링 1. 리팩토링 전 - main 메서드 안에 다 들어가 있는 상태 package Mission; import java.util.Scanner; /** * Up & Down 게임 */ public class Mission2_2 { public static void main(String args[]) { Scanner sc = new Scanner(System.in); final int COUNT = 10; int[] arrInput;// 사용자 입력 int answer; arrInput = new int[COUNT]; answer = (int) (Math.random() * 100 + 1); while (true) ..