자바 전문가분들께 질문이 있습니다. 빠른 답변은 채택과 많은 내공으로...
-
게시물 수정 , 삭제는 로그인 필요
자바에서 메소드를 이용해서 정수 5개를 입력받은 후 가장 큰 정수가 몇번째 수인지 출력하는 프로그램을 짜는 법 중public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int [] a = new int [5];
for (int i=0; i<5; ++i) {
a[i] = sc.nextInt();
}
System.out.println("Max: " + find_max_no(a));
}
이 메인 메소드에 추가되어야 하는 메소드는 무엇인가요??
Scanner sc = new Scanner(System.in);
int [] a = new int [5];
for (int i=0; i<5; ++i) {
a[i] = sc.nextInt();
}
System.out.println("Max: " + find_max_no(a));
}
이 메인 메소드에 추가되어야 하는 메소드는 무엇인가요??