Skip to content

Instantly share code, notes, and snippets.

@drulabs
Created August 7, 2018 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drulabs/7cf2e362e196e9f4a66585088b019f6f to your computer and use it in GitHub Desktop.
Save drulabs/7cf2e362e196e9f4a66585088b019f6f to your computer and use it in GitHub Desktop.
Bank bank = .... ;
List<Customer> customers = bank.getCustomers(); // Get all bank customers
List<Transaction> = customer.getTransactions(); // Get all transactions by 1 customer
double amount = transaction.getAmount(); // Get transaction amount
String transactionType = transaction.getType(); // Get type of transaction (deposit or withdraw)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment