public static ArrayList<String> stringToArrayList(String string){
  return new ArrayList<>(Arrays.asList(string.split(",")));
}

public static ArrayList < String > stringToArrayList ( String string ) { return new ArrayList < > ( Arrays . asList ( string . split ( "," ) ) ) ; }
make arraylist from " , " separated string
