Generic Methods with Linked-list

Hi I’m trying to make these 2 methods work, but even though I tried pretty much everything I can think of, it’s still not working. Please tell me how to fix it! void add(Anything value): Adds a node …

Generic Methods for Linked-list

trying to get these 2 methods to work, but I don’t have much experience with generics and the concept is confusing a lot. Anything getFirst(): Returns the value stored in the first node in the list. …