Not asking for input
<p>I have this:</p>

<pre><code>Scanner input = new Scanner ( System.in );
int selection = input.nextInt();
if (selection == 1) {
System.out.println("Please enter a string: ");
String code = input.nextLine();
}
</code></pre>

<p>However, when it gets to Please enter a string, it doesnt ask for any input. It just goes to the rest of the program.</p>
