Created
August 29, 2012 12:41
-
-
Save ykarikos/3511914 to your computer and use it in GitHub Desktop.
Imperative Java Shit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private String getCustomerKeys(List<Customer> customers) { | |
StringBuilder keys = new StringBuilder(); | |
if (customers != null) { | |
for (Customer customer: customers) { | |
if (keys.length() > 0) { | |
keys.append(", "); | |
} | |
keys.append(customer.customerKey.toString()); | |
} | |
return keys.toString(); | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment