title: I'd like to make it more simple
body: <p>I have here my java code that the objective is that the output should look like this: 
  problem   NEL01L01A021   問題   NEL01L01A021   英語   11-22-2016   NEL01L01A021/NEL01L01A021-problem.txt</p>
  
  <p>I've done it already but I'd like to make it much more simple. Can you please help me?
          import java.util.ArrayList;</p>
  
  <pre><code>public class TestTabSeparator {
  
  String str;
  ArrayList&lt;String&gt; strings = new ArrayList&lt;&gt;();
  
  TestTabSeparator(ArrayList&lt;String&gt; strings) {
      this.strings = strings;
  }
  
  void showArrayList() {
  
      for (int index = 0; index &lt; this.strings.size(); index++) {
          System.out.print(this.strings.get(index) + "   ");
      }
  }
  }
  </code></pre>
  
  <p>The other class:</p>
  
  <pre><code>import java.util.Arrays;
  import java.util.ArrayList;
  
  public class TabSeparator {
  
  public static void main(String[] args) {
  
      ArrayList&lt;String&gt; stringList = new ArrayList();
  
      String topicName = "problem";
      String title = "NEL01L01A021";
      String idTitle = "問題";
      String questionNo = "NEL01L01A021";
      String keyword = "英語";
      String comment = "11-22-2016";
      String bodyKey = "NEL01L01A021/NEL01L01A021-problem.txt";
  
      String[] str2 = new String[7];
      str2[0] = topicName;
      str2[1] = title;
      str2[2] = idTitle;
      str2[3] = questionNo;
      str2[4] = keyword;
      str2[5] = comment;
      str2[6] = bodyKey;
  
      stringList.addAll(Arrays.asList(str2));
      TestTabSeparator strList = new TestTabSeparator(stringList);
      strList.showArrayList();
  }
  }
  </code></pre>