标题:教我一下
取消只看楼主
解答问号
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2007-1-23
 问题点数:0 回复次数:2 
教我一下

我~~~~~~不知道怎么才能编成已经安装jdk1.5 怎么写程序在哪写~~~~~~~~~~~


高手请教+304515155

搜索更多相关主题的帖子: 安装 
2007-01-23 13:47
解答问号
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2007-1-23
得分:0 
public class Fruit {
public static void main(String[] args) {
//Declare and initialze three variables
int numOranges = 5; // Count of oranges
int numApples = 10; //count of apples
int numFruit = 0; //Count of fruit

numfruit = numOranges + numApples; //Calculate the total fruit count
//Disply the result
System.out.println("A totally fruity program")
System.out.println("Total fruit is " + numfruit );
}
}

初学 这个我怎么 解不出来呢 错误是Exception in thread "main" java.lang.NoClassDefFoundError: Fruit
2007-01-23 14:23
解答问号
Rank: 1
等 级:新手上路
帖 子:18
专家分:0
注 册:2007-1-23
得分:0 

详细一点

2007-01-23 14:47



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-117656-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.002410 second(s), 10 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved