오류 (자바) :" '무효'여기에 허용되지 않는 유형"이 컴파일 할 때
obj.java:12: 'void' type not allowed here
System.out.println (printPoint (blank)) ;
^
1 error
정말 어떻게 해야할지 모르겠 :
import java.awt.* ;
class obj
{
public static void printPoint (Point p)
{
System.out.println ("(" + p.x + ", " + p.y + ")");
}
public static void main (String[]arg)
{
Point blank = new Point (3,4) ;
System.out.println (printPoint (blank)) ;
}
}
나는이 오류 이 질문 이외에 묻는 시작 :
- 무엇이 잘못 되었습니까?
- 이 오류 메시지는 무엇을 의미합니까?