ArrayList not allowed with diamond sign in Java 1.6 -


i have project still uses java 1.6. in java 1.7, can write

public astparseunit(final iparserselector parserselector) {     data = new arraylist <>(); // error in java 1.6     this.parserselector = parserselector; } 

how can representate statement in java 1.6 form code data = new arraylist <>(); ?

thanks

solved. sorry, old project antoher hands. code looked this

list<reportchart> data; reportchart detailchart;  public astparseunit(final iparserselector parserselector) {     data = new arraylist <reportchart>();     this.parserselector = parserselector; } 

by specifying, in between <>, arraylist of.

data = new arraylist <objecttype>(); 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -