Question: In Java, I am reading data from a CSV file such as:

```
a,b,c,d
hello,hi,hey, 
bye,ciao,adios,
z,y,x,w

```

What I want is to create an arrayList of Strings such as:

```
["a hello bye z", "b hi ciao y", "c hey adios x", "d w"]

```

The file is very unstructured, so each line does not have the same number of elements. I feel an arrayList will be the best option.My pseudocode so far is:

```
    ArrayList<String> list = new ArrayList<String>();    

        for(each line){

            for(int i = 0; i < numberOfElementsInEachLine; i++){

                list.add(i, list.get(i) + getLineElement(i));
            }
         }

```

What is the best way to achieve this? Thank you.

Answer: 
These steps worked for me:

```
$ sudo python -m pip install --upgrade --force setuptools
$ sudo python -m pip install --upgrade --force pip
$ sudo pip install django==1.9

```
`pip install -U pip` ran fine but didn't fix my issue

* I got the same message when I was trying `pip install django`.
* I thought to try a previous version so I tried `pip install
django-1.9`.
* It said "Real name of requirement Django-1.9 is django-503".
* So `pip install Django-503` worked fine for me.