Consider the ArrayList below:
static ArrayList<String> credit_num = new ArrayList<String>();
What does it mean to have static before the ArrayList?
Consider the ArrayList below:
static ArrayList<String> credit_num = new ArrayList<String>();
What does it mean to have static before the ArrayList?
The keyword static
before a variable in Java means that it is shared by all instances of that particular Class.