i have a short question. For a very long time i implements ArrayList like this:
public ArrayList<Double> random = new ArrayList<Double>();
And no one correct me, so i thought it is good, but android studio underlines "Double" in 2nd ArrayList, but it works anyway
public ArrayList<Double> random = new ArrayList<>();
now Android studio do not show error, so what is the difference ?