Java input string
<p>I'm having difficulties returning a user input string. If I have a code:</p>

<pre><code>System.out.println("please enter a digit: ");
number1 = in.nextInt();
System.out.println("enter another digit: ");
number2 = in.nextInt();
System.out.println("enter a string: ");
string = in.nextLine();
//calculations

System.out.println(number1);
System.out.println(number2);
System.out.println(string);
</code></pre>

<p>it prints out the numbers but not the string. I feel like the solution is very simple but I'm having a brain fart right now. Any help would be appreciated!</p>
