Does anybody know what is wrong with my code
I cannot see what is wrong with this code but i can't get it to compile. when i try to compile it i get the
"Exception in thread "main" java.lang.NoClassDefFoundError:
Is this a problem with compiling or is it a code error?
Here is my code
public class IntCalc{
int value;
public IntCalc(){
value = 0;
}
public void add(int number){
value = value + number;
}
public void subtract(int number){
value = value - number;
}
public int getValue(){
return value;
}
}
Message was edited by:
SHIFTER

