You call bot.getSpecificState(bot.getCurrentState())
. bot.getSpecificState()
expects an int
parameter, but bot.getCurrentState()
returns a String
. Java complains, because the passed String
is not compatible with the expected int
.
You call bot.getSpecificState(bot.getCurrentState())
. bot.getSpecificState()
expects an int
parameter, but bot.getCurrentState()
returns a String
. Java complains, because the passed String
is not compatible with the expected int
.