Доброго времени суток!
Код | public class Example2 { public static void main(String[] args) { throws java.io.IOException { char str; System.out.println("ddd"); str= (char) System.in.read(); System.out.println(str); } } }
|
Выдает ошибку:
Код | Exception in thread "main" java.lang.Error: Unresolved compilation problems: Syntax error on token "throws", throw expected java.io.IOException cannot be resolved to a variable Syntax error, insert ";" to complete BlockStatements
at Example2.main(Example2.java:4)
|
Ругается на 3 строку.
Пожалуйста помогите.
|