LinkedList parameters in Java
Posted
by Walt
on Stack Overflow
See other posts from Stack Overflow
or by Walt
Published on 2010-05-17T02:01:23Z
Indexed on
2010/05/17
2:10 UTC
Read the original article
Hit count: 288
Hi there,
I created a program that contains linked lists that are passed various methods. While this works just fine in Java... a style checker program we have to use doesn't like it
It says: Declaring variables, return values or parameters of type 'LinkedList' is not allowed.
If I declare them as simply List then I don't have access to the methods I want. What should I do?
© Stack Overflow or respective owner