Skip to content

Instantly share code, notes, and snippets.

@dypsilon
Created May 8, 2011 12:33
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 dypsilon/961343 to your computer and use it in GitHub Desktop.
Save dypsilon/961343 to your computer and use it in GitHub Desktop.
Explaned to a friend how to use loops in java.
public void printAccounts() {
for (int i = 0; i < accounts.length; i++) {
// schleifenlogik
Account currentAccount = accounts[i];
Customer owner = currentAccount.getOwner();
Integer id = currentAccount.getId();
double balance = currentAccount.getBalance();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment