title: how to read these specific line in java
body: <p>i have a csv file like this:</p>
  
  <pre><code>i,0             &lt;-- 1st line  
  f,1,2,3         &lt;-- 2nd line  
  s,0,1,2,3,4,5,6 &lt;-- 3rd line  
  0,1,A  
  0,5,B  
  1,1,A  
  1,3,B  
  2,6,A  
  2,4,B  
  3,6,A  
  3,4,B  
  4,6,A  
  4,4,B  
  5,1,A  
  5,5,B  
  6,6,A  
  6,2,B  
  </code></pre>
  
  <p>how do i read these line to 4 different array/arraylist in java?<br>
  the output i want is something like this:  </p>
  
  <ul>
  <li>1st line: 0 [1st array]  </li>
  <li>2nd line: 1 2 3 [2nd array] --> just 1 line but the length of the token is unknown</li>
  <li>3rd line: 0 1 2 3 4 5 6 [3rd array]  --> just 1 line but the length of the token is unknown</li>
  <li>rest of the line:  --> fixed 3 token, but the number of the row is unknown<br>
  0 1 A<br>
  0 5 B<br>
  1 1 A<br>
  1 3 B<br>
  2 6 A<br>
  2 4 B<br>
  3 6 A<br>
  3 4 B<br>
  4 6 A<br>
  4 4 B<br>
  5 1 A<br>
  5 5 B<br>
  6 6 A<br>
  6 2 B </li>
  </ul>
  
  <p>can't get it right with the combination of scanner and switch-case condition..</p>