오답 노트

231010#2 세미콜론 누락

eyoadgkn 2023. 10. 10. 16:47

System.out.println("hello java!")

 

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

Syntax error, insert ";" to complete BlockStatements

 

at test.test.main(test.java:6)

 

구문을 완료하는 세미콜론 누락으로 오류,블록 내 여러 문장을 가지고 있는 경우 세미콜론으로 문장을 종료

 

*수정

System.out.println("hello java!");