list - LinkedList parameters in Java -


I have created a program that has linked lists which have been passed in different ways. Although it works just fine in Java ... a style tester program that we do not like it

It states: Declaring variables, return values ​​or types of 'linkedlist' parameters Not allowed. / P>

If I declare them as a list then I do not have access to my methods. What should I do?

either declare it (this implements another interface) or reconfigure the style tester program. Although some wrong methods have been opposed in contrast to Deque , here's a quote from its quiz:

Unlike the list interface, this Interface does not provide support for indexed access to elements.

But I do not expect that you are using them :)


Comments