Updated example and readme for getListItem()

Also separate ```java sections.```