....아래 포스팅도 업데이트 할 예정입니다.
Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from String to int
class Sample{
public int x;
public int y;
public Sample() {
System.out.println("Sample() 생성자 시작");
}
}
public class Test10 {
public static void main(String[] args) {
Sample ss = new Sample();
ss.x ="test";
ss.y = 20;
}
}
댓글