I would like to write a linked list like this:
"a" -> "b" -> "c" -> "d"
This is what I've tried so far but it's obviously wrong. I was wondering how to express this correctly in java?
LinkedList<String> s = new LinkedList<>();
s = {"a"->"b"->"c"->"d"};
Thanks!