非常类型的开始 [英] illiegal start of type

查看:24
本文介绍了非常类型的开始的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在接受这个代码的编译错误,任何想法 - 现在停留了好几个小时。


我在第23行获取标识符预期

}





非常类型的开始

尝试

^


感谢任何帮助。



Hi all, i am getting a coupke of compile errors with this code, any ideas - stuck on it for a good few hours now.

im getting a identifier in line 23 expected
}

and

illiegal start of type
try
^

Any help is appreciated.




展开 | 选择 | Wrap | 行号

推荐答案

别忘了代码必须进入方法 - 你忘了定义任何方法,例如,main方法。
Don''t forget that code has to go into methods -- you forgot to define any methods, for example, a main method.


把它放在一个主要的maethod中,现在我得到五个错误 - 包括它找不到符号:方法关闭和写入。

put it in a main maethod and now i m getting five errors - including it doesn''t find symbol: method close and write.

展开 | 选择 < span class =codeDivider> | Wrap | 行号


您没有向我们展示您提供给编译器的代码。


亲切的问候,


Jos
You''re not showing us the code you fed to your compiler.

kind regards,

Jos


这篇关于非常类型的开始的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆