Java - Take a string from user and use KeyPress from the Robot object to type it out
<p>How would I go about doing this?</p>

<p>I got a loop for it but don't know how to type it out..</p>

<pre><code>    //Start typing the given strings
    for( int i=0; i&lt;vString_size; i++ ) //Run through all the strings
    {
    string_size = vString.get(i).length();

    for( int j=0; j&lt;string_size; j++ ) //Run through each letter
    {
    letter = vString.get(i).charAt(j);

     //Press key

     //Release key



 }

    //Press [ENTER]
    r.keyPress( KeyEvent.VK_ENTER );
    }
</code></pre>
