I'm not quite sure how to do that. I also notice that I'm getting a similar error:
You passed your turn.It is the other Pokemon's turn.Exception in thread "main" java.lang.NullPointerException
...
Type: Posts; User: redrooster
I'm not quite sure how to do that. I also notice that I'm getting a similar error:
You passed your turn.It is the other Pokemon's turn.Exception in thread "main" java.lang.NullPointerException
...
I'm sorry, but I don't quite understand. Are you suggesting that I add a println in the actual code?
Again, I believe it's currentPokemon, but I'm not sure how to get it to be defined all throughout the program; I declare it at the very top of my code. Any ideas?
Exception in thread "main" java.lang.NullPointerException
at PokemonArena.attack(PokemonArena.java:337)
at PokemonArena.userMove(PokemonArena.java:243)
at...
Hello, I have a project that requires that I make a Pokemon program to simulate what would occur in an ordinary Pokemon game, without the graphics involved. I am continually coming across the same...