Im having problems getting my java program to work for my class. I keep getting this error when i try to do a subtraction and i cant figure out why it wont subtract anyway heres the error
operator - cannot be applied to java.lang.String,int
output = "" + (num1 * num2 * (yearString - num3));
^
for some reason it wont let me subtract if you need to see the whole program to figure out the problem ill paste it...its not that long only 20 lines....i think thats all ill need to make the program work. anyway its intro to java class so dont flame me if its a easy fix everyone has to start somewhere.
thanks
operator - cannot be applied to java.lang.String,int
output = "" + (num1 * num2 * (yearString - num3));
^
for some reason it wont let me subtract if you need to see the whole program to figure out the problem ill paste it...its not that long only 20 lines....i think thats all ill need to make the program work. anyway its intro to java class so dont flame me if its a easy fix everyone has to start somewhere.
thanks