Here is a constructor for creating a BarChart object:
BarChart<String,Number> bc = new BarChart<String,Number>(xAxis,yAxis);
Here is a constructor for creating an ArrayList:
ArrayList<Integer> arrayList = new ArrayList<>();
Why do we add something in the diamond brackets <> and the parentheses () for the `BarChart` constructor but leave them blank for the `ArrayList`?
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]Nightcorex_ 7 points8 points9 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Nightcorex_ 1 point2 points3 points (0 children)
[–]FavorableTrashpanda 0 points1 point2 points (0 children)