public static ArrayList<Integer> convertStringArrayToIntegerArray(List<String> arrayList){
  ArrayList<Integer> integers=new ArrayList<>();
  for (  String str : arrayList) {
    integers.add(Integer.valueOf(str));
  }
  return integers;
}

public static ArrayList < Integer > convertStringArrayToIntegerArray ( List < String > arrayList ) { ArrayList < Integer > integers = new ArrayList < > ( ) ; for ( String str : arrayList ) { integers . add ( Integer . valueOf ( str ) ) ; } return integers ; }
create a integer arraylist from string arraylist
