Added Java examples #19-28