....................................................................................................
public class MyFirstJava
{
void myPrint1()
{
System.out.println("调用第一个方法!");
}
void myPrint2()
{
System.out.println("调用第二个方法!");
}
public static void mian(String args[])
{
System.out.println("这是我的第一个Java程序");
}
}
........................................................................................................
这是代码!
........................................................................................................
然后我右击MyFirstJava这个类就会出现6个选项:
new MyFirstJava()
void mian(String[])
Open Editor
Compile
Inspect
Remove
........................................................................................................
我选第二个就会出现这样的情况
.................................................................................................
void mian(String[])
MyFirstJava.mian( )
OK Cancel
......................................................................................................
其中只有括号里出现了个光标要我填东西,其它的都是系统给出的黑体字!
.......................................................................................................
我用的是blueJ