Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In general, ArrayList has setAll / addAll () methods.
Since objects can be iterated over in for, it can be charged there as well. These methods chew on everything with the Serializable interface.
In other words:
Since field is a self-written class, then just add a method that returns objects, like this:array.addAll(field.getObjects());
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question