String[] name = new String[3];//입력 부분 설정
String[] hak = new String[3];
int[] kor = new int[3];
int[] Eng = new int[3];
int[] mth = new int[3];
Scanner scan = new Scanner(System.in); //인터넷 에서 찾은 스캐너 사용
// 반복 입력 설정
for(int i=0; i<4; i++){
System.out.print("이름을 입력하세요.");
name[i]= scan.nextLine();
System.out.print("학번을 입력하세요.");
hak[i] = scan.nextLine();
System.out.print("국어 점수를 입력하세요.");
kor[i] = scan.nextInt();
System.out.print("영어 점수를 입력하세요.");
Eng[i] = scan.nextInt();
System.out.print("수학 점수를 입력하세요.");
mth[i] = scan.nextInt();
}
배열을 포문으로 돌려서 3번씩 입력받게할껀데
한번 돌고나면
이름을 입력하세요는 건너뛰고 바로 학번으로 넘어갑니다
무시하고 계속 입력하면
에러가 나는데
저거 왜 건너뛰는거죠