Skip to content

Instantly share code, notes, and snippets.

@egealpay
Created February 26, 2019 06:37
Show Gist options
  • Select an option

  • Save egealpay/dcee494eea70032df73de26a7e1e01f5 to your computer and use it in GitHub Desktop.

Select an option

Save egealpay/dcee494eea70032df73de26a7e1e01f5 to your computer and use it in GitHub Desktop.
List<Employee> employees = getEmployees();
if (employees != null) {
for(Employee e : employees) {
totalPay += e.getPay();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment