Eclipse: Syntax Error, parameterized types are only if source level is 1.5

后端 未结 17 1825
清酒与你
清酒与你 2020-12-13 01:55

I try to use the following code:

ArrayList
Map

Eclipse complains about both of them: Syntax Error, para

17条回答
  •  Happy的楠姐
    2020-12-13 02:27

    THIS CAN BE A QUICK FIX FOR ECLIPSE

    When I was trying to create array list it gave error that array list cannot be resolved to type and something about "parametrised type are only in level 1.5"

    Only I did was I tried to import java.util.ArrayList;

    And that error went away.

提交回复
热议问题