Check the use of Generics in your code, for example:


private ArrayList<String> arrayOfString = new ArrayList<String>();

You can also use the split function of String


String[] split =...