I\'m using Netbeans. When I run the program below, I get this as output [I@de6ced! How come?
[I@de6ced
import java.util.Arrays; import java.util.Vector; publ
It looks like the int's are becoming Integers using autoboxing so you are getting an object reference instead of the value. Still seems weird as it should call the correct toString and end up with "5".