Java Print Array Object Indexof