Response response=getOffers(sessionID, ip_planSummaryBottomLeft, 3) OfferList offerList=response.getOfferList(); if(offerList.getRecommendedOffers() != null) { for(int x=0;x<3;x++) { Offer offer = offerList.getRecommendedOffers()[x]; if(x==0) { // grab offerimg attribute value and store somewhere; // this will be the first image to display } else if(x==1) { // grab offerimg attribute value and store somewhere; // this will be the second image to display } else if(x==2) { // grab offerimg attribute value and store somewhere; // this will be the third image to display } } }