I do not know the suitable constructor for an Object array. Is there any constructor for such?
Object[] newArr = new Object[this.count];
List result = new List (newArr);
This line always error to:
error: no suitable constructor found for List(Object[])
List newArr = new List(result);
constructor List.List(String[]) is not applicable
(argument mismatch; Object[] cannot be converted to String[])
constructor List.List(Integer[]) is not applicable
(argument mismatch; Object[] cannot be converted to Integer[])
What should I do? I need to copy the new Object array from a this.arr (object array)
I honestly am confused with this part.