Use diamond operator...
This commit is contained in:
parent
acdf2dd3ec
commit
d13180e6ff
@ -97,7 +97,7 @@ public class BarChartSample extends Application {
|
||||
xAxis.setLabel("Country");
|
||||
yAxis.setLabel(yAxisLabel);
|
||||
|
||||
BarChart<String, Number> bc = new BarChart<String, Number>(xAxis, yAxis);
|
||||
BarChart<String, Number> bc = new BarChart<>(xAxis, yAxis);
|
||||
bc.setTitle(title);
|
||||
bc.getData().addAll(
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user