Share your repls and programming experiences

← Back to all posts
McDonalds Pokemon Crossover
Serenity2009 (3)

I used a template from my coding teacher and changed some things about it. Pretty much this is pokemon but with food.

Commentshotnewtop
EpicGamer007 (1121)

Good job!

I noticed that you cannot enter anything other than a number. You could do

System.out.println("...Options... ");

while(!scan.hasNextInt()){
  scan.nextLine();
  System.out.println("Please enter a number);
}
int input = scan.nextInt():

Try that. I know it has worked with me before.