descriptions = new String[items.length]; prices = new float[items.length]; for (int i = 0; i < items.length; i++) { descriptions[i] = items[i].getDescription(); prices[i] = items[i].getPrice(); } totalPrice = record.getTotalPrice();
return descriptions.length;
return descriptions[index];
return prices[index];
return totalPrice;