ArrayList() var customer: Customer? = null for (c in Dataset.customers) { if (c.name == name) { customer = c break } } if (customer != null) { for (purchase in customer.purchases) { if (purchase.success) successfulPurchases.add(purchase) } } return successfulPurchases }
ArrayList() var customer: Customer? = null for (c in Dataset.customers) { if (c.name == name) { customer = c break } } if (customer != null) { for (purchase in customer.purchases) { if (purchase.success) successfulPurchases.add(purchase) } } return successfulPurchases }
ArrayList() var customer: Customer? = null for (c in Dataset.customers) { if (c.name == name) { customer = c break } } if (customer != null) { for (purchase in customer.purchases) { if (purchase.success) successfulPurchases.add(purchase) } } return successfulPurchases }
ArrayList() var customer: Customer? = null for (c in Dataset.customers) { if (c.name == name) { customer = c break } } if (customer != null) { for (purchase in customer.purchases) { if (purchase.success) successfulPurchases.add(purchase) } } return successfulPurchases }
ArrayList() var customer: Customer? = null for (c in Dataset.customers) { if (c.name == name) { customer = c break } } if (customer != null) { for (purchase in customer.purchases) { if (purchase.success) successfulPurchases.add(purchase) } } return successfulPurchases }
ArrayList() var customer: Customer? = null for (c in Dataset.customers) { if (c.name == name) { customer = c break } } if (customer != null) { for (purchase in customer.purchases) { if (purchase.success) successfulPurchases.add(purchase) } } return successfulPurchases }
ArrayList() var customer: Customer? = null for (c in Dataset.customers) { if (c.name == name) { customer = c break } } if (customer != null) { for (purchase in customer.purchases) { if (purchase.success) successfulPurchases.add(purchase) } } return successfulPurchases }