title: Java - split after number of characters?
body: <p>I have a String and want to split it after a number of characters...</p>
  
  <p>Example Code:</p>
  
  <pre><code>    //This is what I have:
      String text = "12345678";
      List&lt;String&gt; tmpListFirst = new LinkedList&lt;&gt;();
      List&lt;String&gt; tmpListSecond = new LinkedList&lt;&gt;();
      int splitAfter = 3; //split after the second character (this value is variable)
  
      //The result should look like this:
      tmpListFirst.get(0) //== 678
      tmpListFirst.get(0) //== 12345
  </code></pre>