#if statement troubles
8 messages · Page 1 of 1 (latest)
Okay, so, what do you need help with?
Oh, you would've to use Scanner#nextLine instead of Scanner#next
I need help with detecting if a string has a hyphen -
If it has a hyphen it prints “this message comtains a hyphen”
oh, then use input.contains("-")