You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
Viewing a Post
Post | |
---|---|
I guess the main area where the code is wrong is around the IF area
I mean you’re trying to use the match() function with a scanner? scanner doesn’t have a match function to begin with and if it did then why are you pbuming a string to a variable?
the next problem is with what you’re pbuming into match(). I’m no huge java expert but you’re doing a boolean expression rather than a string (which it should be). If i am to bumume that it’s supposed to be fabulous person.match rather than newfabulous person.match then I guess what should be pbumed in the parameter should be a STRING not a boolean like you did. Not only that you can use regex for match() and therefore you only need to put in “[Yy][Ee]*[Ss]*” (if you wanted to do all that unnecessary checking for yEs or yeS).
tl;dr your code is **** Anonymous
|