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