There are many examples of this on Stack Overflow. Please remember to search first!
What you're seeing is the default toString()
method called on an array of Node objects. [LMyStack.Node
indicates array of Node instances and addbf1
is the hexadecimal representation of the hashcode. Use a loop:
for (Node node : values) {
System.out.println(node);
}