0

Arraylist

Say whether following statements are correct or not??? 1.List<Integer>fan=new ArrayList<>(); 2.List<Integer>fan=new LinkedList<>(); 3.Queue<Integer>fan=new Linkedlist<>();

14th May 2020, 3:58 PM
Haritha Vuppula
Haritha Vuppula - avatar
3 ответов
+ 2
The first two are correct but the last one isn't - there's a syntax error, "Linkedlist" doesn't exist. As long as you import Java's utility module, the first two should work.
14th May 2020, 4:36 PM
Jianmin Chen
Jianmin Chen - avatar
0
Are you confused on what is being asked?
14th May 2020, 4:11 PM
Jianmin Chen
Jianmin Chen - avatar
14th May 2020, 4:29 PM
Haritha Vuppula
Haritha Vuppula - avatar