Hey all,
I'm having some issues using ArrayList. Here's the code..
ArrayList<Double> var = new ArrayList<Double>();
var.add(15.0);
var.add(0.0);
I could just use
double[] var = {15.0 , 0.0};
for this.. but I'm trying to teach myself Java and need to understand the use of ArrayList.
Any insight is appreciated