Two things: Remove semi-colon after if
condition and use System.out.print()
instead if you want input on the same line.
1
solved Why won’t this scanner accept input on the println? [closed]
Two things: Remove semi-colon after if
condition and use System.out.print()
instead if you want input on the same line.
1
solved Why won’t this scanner accept input on the println? [closed]