I am making a simple app (seen in photo) all it does is count up and you have to try get to the goal. I'm trying to do the if statement part where if the current number is = to the goal make a new random number. When I try any thing in this if statement, even something that just makes the current number 0 it crashes the app.
if(currentNumber == goal){
randomNumber = random.nextInt(100-0);
}
.
.
Here's the one with simple code that makes the current number = 0
if(currentNumber == goal){
currentNumber.setText("0");
}
Stack trace: