I tried looking online but I only just started learning about Android Studio and the information given is too abstract.
Can someone translate this to English please?
Alright so I tried a couple things and now this is my issue... AnotherNullPointer
This method seems to be my problem. Line 194 is the content of my "else".
private void compute(){
if(!Float.isNaN(value1)){
value2 = Float.parseFloat(resultView.getText().toString());
switch(Action){
case Addition:
value1 = value1 + value2;
break;
case Subtraction:
value1 = value1 - value2;
break;
case Multiply:
value1 = value1 * value2;
break;
case Divide:
value1 = value1 / value2;
break;
case Eq:
break;
}
}
else{
value1 = Float.parseFloat(resultView.getText().toString());
}
}