I am trying to create a program in eclipse that uses an ArrayList. The problem I am having is that whenever I try and create a new list-
List<Integer> list = new ArrayList<>();
I get an error saying that I cannot use <> for source level below 1.7. I tried to fix it by just clicking on the error and changing the source level, but then I get an error when I try to run the program saying there is no main method.
Any help is appreciated. Thanks!