Hello I\'m a beginner in Java and this is my question: I have this first class with the following variables:
import java.util.ArrayList; public class number
Two ways
1)instantiate the first class and getter for arrayList
first class
arrayList
or
2)Make arraylist as static
static
And finally
Java Basics By Oracle