If I create an array of variables:
public String a;
public String b;
public String c;
public String[] d = {a,b,c};
it will contain {null, null, null};
If I then do this:
a = "5";
System.out.println(d[0]);
output will be null since a was null when d was initialised.
Is there a way to create an "array of references", so that output in this case would be 5?
EDIT: PLOT TWIST!
First part of code is in some class. Second part is in a class that is extending the first one.
nullfrom primitives? Also, those variables haven't been initialized; the code won't compile.Integer).