Generic syntax symbol <~> [duplicate]
问题 This question already has answers here : What does a tilde in angle brackets mean when creating a Java generic class? (4 answers) Closed 6 years ago . Working with IDE like NetBeans or IDEA, i've seen that they are converting generic types into this symbol: private final List<String> ar = new ArrayList<~>(); But using this in a simple editor results in throwing an error. BTW Eclipse also doesn't like it. Is it somehow connected with type erasure mechanism? 回答1: You will see that in IntelliJ