当前位置: 技术问答>java相关
Java初学,在线等待,高分相送,也许简单,HelloWold为何运行不起来?没事也可来看看啊*^o^*
来源: 互联网 发布时间:2015-05-06
本文导语: //程序代码 import java.io.IOException; public class Fruit { public static void main(String[] args) { int iOranges = 5; int iApples = 10; int iFruit = 0; iFruit = iOranges + iApples; System.out.println("A totally fruity p...
//程序代码
import java.io.IOException;
public class Fruit
{
public static void main(String[] args)
{
int iOranges = 5;
int iApples = 10;
int iFruit = 0;
iFruit = iOranges + iApples;
System.out.println("A totally fruity program");
System.out.println("Total fruit is " + iFruit);
System.out.println("(Press Enter to exit)");
try
{
System.in.read();
}
catch (IOException e)
{
return;
}
}
}
/*PATH:D:jdk1.3.1_03LIBdt.JAR;D:jdk1.3.1_03LIBTOOLS.JAR;D:jdk1.3.1_03bin;*/
//CLASSPATH: D:JAVA //*.JAVA保存位置
//javac D:javaFruit.java successfully
//java d:javaFruit //Error:没看到:)
//在线等待,悟空救我~~~
import java.io.IOException;
public class Fruit
{
public static void main(String[] args)
{
int iOranges = 5;
int iApples = 10;
int iFruit = 0;
iFruit = iOranges + iApples;
System.out.println("A totally fruity program");
System.out.println("Total fruit is " + iFruit);
System.out.println("(Press Enter to exit)");
try
{
System.in.read();
}
catch (IOException e)
{
return;
}
}
}
/*PATH:D:jdk1.3.1_03LIBdt.JAR;D:jdk1.3.1_03LIBTOOLS.JAR;D:jdk1.3.1_03bin;*/
//CLASSPATH: D:JAVA //*.JAVA保存位置
//javac D:javaFruit.java successfully
//java d:javaFruit //Error:没看到:)
//在线等待,悟空救我~~~
|
classpath = ".;......"