java - Error Message When Using ArrayList<>(); -


this question has answer here:

i trying create program in eclipse uses arraylist. problem having whenever try , create new list-

list<integer> list = new arraylist<>(); 

i error saying cannot use <> source level below 1.7. tried fix clicking on error , changing source level, error when try run program saying there no main method.

any appreciated. thanks!

so problem main method. you've fixed compilation error eclipse trying run program. make sure you're trying run class main method, class compiles, , method's signature correct. each keyword important, not name.

public static void main(string[] args) {  } 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -