Topic: 求教高手!!('class' or 'interface' expected) |
Print this page |
1.求教高手!!('class' or 'interface' expected) | Copy to clipboard |
Posted by: efootball Posted on: 2005-05-28 16:38 请尽量用准确的文字描述作为标题 your next post without a proper Subject will be removed. 那位高手能够帮小弟看看这个程序: import java.awt.*; import java.applet.Applet; public class CountClick extends Applet { int CurretMarks = 0; public void init() { Button b1 = new Button ("按钮"); add(b1); } } E:\学习园地\java javac CountClick.java 但是没有通过编译: 出现了以下的错误: CountClick.java:1:'class' or 'interface' expected import java.awt.*; ^ 1 error import java.applet.Applet; ^ 1 error |
2.Re:求教高手!! [Re: efootball] | Copy to clipboard |
Posted by: javaguan2 Posted on: 2005-05-28 16:50 极有可能你的编辑器前面多了一个隐藏的字符,你用另外一个文本编辑器试下. 你这段代码无误 |
3.Re:求教高手!!('class' or 'interface' expected) [Re: efootball] | Copy to clipboard |
Posted by: efootball Posted on: 2005-05-28 22:38 楼上的同志,我用的记事本,应该不会哟 |
4.Re:求教高手!!('class' or 'interface' expected) [Re: efootball] | Copy to clipboard |
Posted by: why Posted on: 2005-05-29 12:06 Please upload your CountClick.java as attachment... |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |