How to read indexed bean's property value?
In this example you'll see how to read an indexed property of an object such as
array. Using the
PropertyUtils.getIndexedProperty() method we can do it easily. This method take the bean and the name of indexed property including the element to be read. Let's see the example below for more details.
Our program results are:
trackOne.getTitle() = It Won't Be Long
trackThree.getTitle() = All My Loving