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?