import java.io.*;
public class Person{
String name;
int eng;
int math;
int kokugo;
public static void main (String[] args) throws IOException {
BufferedReader br=
new BufferedReader( new
InputStreamReader(System.in));
int[] a=new int[3];
int[] b=new int[3];
int[] c=new int[3];
Person[] meibo;
meibo = new Person[3];
for(int i=0; i<3; i++){
System.out.println(\"1enter\" );
line = br.readLine();
a[i] = Integer.parseInt(line);
}
for(int i=0; i<3; i++){
System.out.println(\"1enter\" );
line = br.readLine();
b[i] = Integer.parseInt(line);
}
for(int i=0; i<3; i++){
System.out.println(\"1enter\" );
line = br.readLine();
c[i] = Integer.parseInt(line);
}
meibo[0]=new Person();
meibo[0].name = \"Taro\";
meibo[0].eng = a[0];
meibo[0].math = a[1];
meibo[0].kokugo = a[2];
meibo[1]=new Person();
meibo[1].name = \"Hanako\";
meibo[1].eng = b[0];
meibo[1].math = b[1];
meibo[1].kokugo = b[2];
meibo[2]=new Person();
meibo[2].name = \"ark\";
meibo[2].eng = c[0];
meibo[2].math = c[1];
meibo[2].kokugo = c[2];
for (int i=0; i< meibo.length; i++){
System.out.println(meibo[i].eng+\" \"+meibo[i].math+\" \"+meibo[i].kokugo);
}
}
}
뭐가문제일까???
line = br.readLine();
a[i] = Integer.parseInt(line);
여기에서 에러나는거 같은대..
젭알도움좀주셈 굽신굽신
에러메세지는 어딨ㅇ나요
컴파일 알아서 해보고 에러 찾아내서 써달라는 뜻인듯..조공도없네염 늅늅
입에다 떠넣어주고 턱좀 움직여서 소화좀 시켜달라. 이뜻인감.
cannot find symbol Sysmbol:variable line location:class Person 이라고 뜨는대 뭐가잘못된거죠??
조공..ㅠ_ㅠ.
line 은 datatype 가 뭐임? 어따가 선언해놓은거임?
다른 class 에 있나염?
line cannot be resolved