focus on user input using Scanner class in java
<p>When using a Scanner object is it possible to ensure the cursor always focuses in the console? For example when I run my program if I do not click in the console and start typing my input ends up in the middle of my program code if I am not paying attention.</p>

<pre><code>Scanner s = new Scanner(System.in);
String name = s.nextLine(); 
System.out.print("Enter your name")
</code></pre>

<p>So when I run this program I will get Enter your name in the console and I would like to automatically focus the cursor ready to take users info at the end of the sentance.</p>

<p>Thanks for any help </p>
