I'm trying to convert the values of a linked list's nodes into a single string. For example:
"c" -> "a" -> "t"
So when I use the built in toString
method, I get this as an output.
"[c, a, t]"
Where the entire thing is a string. Is there any method that allows me to merge this into a single string, like so?
"cat"