I think this problem stems from my lack of understanding of Java.
I'd like to print the chars of a string which I'm guessing is some sort of funny java string.
I was given an object of type
InputStream an needed to read the lines and parse them by a particular rule.
val lines = Source.createBufferedSource(s).getLines()
to apparently get an Iterator for the lines.
Next, I used the following to get what IntelliJ thinks is an object of type
val plists = lines.map(line => line.split(",").map(_.trim)).filter(list => ! list.contains(""))
When I try to print this with
println, it prints as something I don't understand.
The output is the following.
Can someone tell me what this means? I notice the opening [ is never closed. Is the type name really "[Ljava.lang.string"? Is there a way to print the actual strings of characters?