Java Scanner/String

Hi people, I have some Java code for a basic calculator (+ - * / (I'm new at this)) and I have a Scanner variable that asks which you would like. How
do make the Scanner accept String input?


  • input.nextLine(); // If you're expecting the user to hit enter when done.; // Just another option.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion