incompatible types: java.lang.String cannot be converted to int [closed]

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

Browse More Popular Posts

Leave a Comment