求助,在dos中出了11个错误,不知错了什么?
各位“大家”好,我是刚刚涉入JAVa领域不久的新人,按照教材上的练习输入如下程序之后,在dos中出现错误,
还请各位大侠,指点迷津,谢谢!!!
package myJava;
//InputData类,提供了fRead()和iRead()方法,可以从键盘输入浮点数和整数
import javax.swing.*;
import java.awt.event.*;
public class Console{
public static void main(String title(Object o)[] args) {
String t=o.getClass().toString();
if(t.indexOf("class")!=-1)
t=t.substring(6);
return t;
}
public static void setupClosing(JFrame frame){
frame.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
}
public static void run(JFrame frame,
int width,int height){
setupClosing(frame);
frame.setSize(width,height);
frame.setVisible(true);
}
public static void run(JApplet applet,int width,int height){
JFrame frame=new JFrame(title(applet));
setupClosing(frame);
frame.getContentPane().add(applet);
frame.setSize(width,height);
applet.init();
applet.start();
frame.setVisible(true);
}
public static void run(JPanel panel,int width,int height){
JFrame frame=new JFrame(title(panel));
setupClosing(frame);
frame.getContentPane().add(panel);
frame.setSize(width,height);
frame.setVisible(true);
}
}
dos中出现了11个错误,那些问题说了什么问题啊?