I have searched around the internet and what I am doing seems to be the standard conversion operation, but it still tells me:
Cannot resolve constructor 'ArrayList(java.util.List<T>)'
I also have no issues with String array conversions when done in same way. This is my code:
public class Main {
public static void main(String[] args) {
int[] arr = {1, 10, 1, 30, 50, 30};
ArrayList<Integer> arrList = new ArrayList<Integer>(Arrays.asList(arr));
System.out.println(arrList);
}
}
Any ideas?