How do I add String into ArrayList by use BufferedReader?
<p>I want to add my words into my input_words by user System.in, I tried look at online and I did test many way, but it doesn't work. Anyone can help? </p>

<p>In my code, when I run it, it will ask me to put String1, 2, 3...7, but I want to put it into input_words. </p>

<p>Thank you...</p>

<p>Here is my code. </p>

<pre><code>public static void main(String[] args) {

    ArrayList&lt;String&gt; input_words = new ArrayList&lt;String&gt;();

    input_words.add("SCHOOLWORKTWO");
    input_words.add("BALCONY");
    input_words.add("INSIST"); 
    input_words.add("SALTPETER");
    input_words.add("BOLTON");
    input_words.add("KITSCHY");
    input_words.add("CLIENTELE");
    String s1 = getInput("Enter a String String 1: ");
    String s2 = getInput("Enter a String String 2: " );
    String s3 = getInput("Enter a String String 3: " );
    String s4 = getInput("Enter a String String 4: " );
    String s5 = getInput("Enter a String String 5: " );
    String s6 = getInput("Enter a String String 6: " );
    String s7 = getInput("Enter a String String 7: " );
    System.out.println(s1 + ", " + s2+", " + s3+", " + s4+", " + s5+", " + s6+", " + s7);       // Should use this string as input_words.add Array
    System.out.print(getTiles(input_words, DEFAULT_SPLITTER)); // Make sure to use DEFAULT_SPLITTER

}
</code></pre>
