Answer the question
In order to leave comments, you need to log in
ArrayList remove internal array using reference?
Good
I will describe in brief, otherwise the code will be a sheet of unnecessary code. The situation is this. There are two arrays:
ArrayList<String> arrayString = new ArrayList<>
ArrayList<ArrayList> array = new ArrayList<>
array.add(arrayString) // i раз
//типо такого
myClass.array(array.get(5));
private ArrayList arrayString ;
public array(ArrayList<String> arrayString ) {
this.arrayString = arrayString;
........
this.arrayString = null //тут я надеялся занулить сам массив, но занулил ссылку на него
}
Answer the question
In order to leave comments, you need to log in
Maybe try installing the latest node and install the new npm with it?
this.arrayString= new ArrayList<>();
hmm, I re-read the question and realized that I didn’t understand what exactly the author wants to get.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question