I kind of understand why I am getting this error but have no idea how to solve it.
I think the constructor 'Chatter' requires a String, and the method add does not supply that. I tried adding String n to adds parameters but it just came up with more errors, could someone point me in the right direction?
I also get an error saying the variable name might not have been initialised, and it points to the curly bracket at the end of the second chatter method below.
Here are the relevant offending pieces of code.
IN CLASS CHATTERLIST private void add(Chatter c) { theList = new Chatter(c, theList); } IN CLASS CHATTER public Chatter(String n) { name = n; } Chatter(Chatter c, Chatter next) { this.next = next; theChatter = c; }
thanks!