I have a String array 

```
String[] list = new String[]{"2","A","B","1","C","3","D","E","F"}

```

Please Note that the first element of array is 2.
I would have done -

`int n = Integer.parseInt(list[0]);`

Problem is, I need a loop to go through the array. I cant seem to parse it without giving me a `NumberFormatException` error. Also, notice that if the number is a 2, it will arrange the next 2 elements (might be random) and then a space.

> 
> 1: A
> 
> 
> 2: B
> 
> 
> 3: -empty-
> 
> 
> 4: D
> 
> 
> 5: E
> 
> 
> 6: F
> 
> 
> 7: -empty-
> 
> 
> 8: C
> 
> 
>