I'm trying to use a List
of List
s in Java in NetBeans for the first time:
List<List<String>> listao = new ArrayList<>();
But it has a compile error on the line where I have the list:
error: diamond operator is not supported in -source 1.5
And it presents the tip:
use -source 7 or higher to enable diamond operator
Okay, but what source is this, and how to do that?