Ask coding questions

← Back to all posts
I dont understand what to do! plz help :(
xMisbahx (4)

OK, so I'm kind of new to Java. I know enough to make a simple program, but nothing further than that. I have this program, but I running into a wall with this one part:

Answered by SixBeeps (5223) [earned 5 cycles]
View Answer
Comments
hotnewtop
SixBeeps (5223)

On the yeanea line, you're asking the console for an integer, but 'yea' is not an integer last I checked. Might wanna change nextInt() to nextLine().

xMisbahx (4)

@SixBeeps int yeanay = scan.nextLine(); what do i change the INT to then?