+ 4
Why I cannot refer argument to list?? 😢
4 Réponses
+ 5
that never solved my problem 😢
+ 5
Denise Roßberg please directly guide me by constructing a doubly linked list 😉
+ 2
#ditched
Maybe I missunderstood what you want to do.
I think the best is to share your complete code (using code playground) and to give more information about your task.
+ 1
I think your problem is this:
List<Integer> item = new List<>();
But List is an interface so it won't work.
You can do something like this:
List<Integer> item = new ArrayList<>();
You can do this with any list which implements the interface List.
For more information:
https://www.google.de/amp/s/www.geeksforgeeks.org/initializing-a-list-in-java/amp/