What is the difference in the two following declarations of an ArrayList?
ArrayList<Integer> nunbers = new ArrayList<Integer>();
vs
ArrayList<Integer> nunbers = new ArrayList<>();
Is one of them preferred over the other?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…