← Back to Community
Pokemon
Profile icon
TheMaster7661

Hi, this is a Pokemon game that I've made, but when I run it, it doesn't work. It worked fine as I was completing it, but after I finished it, it just gives me an error. Can someone help me figure out what I've done wrong?

Voters
Profile icon
TheMaster7661
Comments
hotnewtop
Profile icon
Coder100

Hm? Why did you repost?

working repl

I also removed a lot of useless arguments and some naming things as well :)

Profile icon
TheMaster7661

@Coder100 I understand, but why didn't you just say this on my other post? This post if for a completely different game. If you can help me, that would be great, or at least tell me why the console keeps giving me an error.

Profile icon
Coder100
Profile icon
Coder100

ok, so right here:

public static void main(String[] args) { private int health; private int strength; private int speed;

That's invalid. You should remove the public static void main(String[] args) {

@NoahJospeh

Profile icon
TheMaster7661

@Coder100 Thank you, I removed what you said, but now I get two errors.

Profile icon
Coder100
Profile icon
Coder100

@NoahJospeh progress lol

Profile icon
Coder100

well, this is a lot of really bad code please wait as I fork @NoahJospeh

Profile icon
Coder100

This is the closest I can get here @NoahJospeh