Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created Mar 1, 2017
Embed
What would you like to do?
private ArrayList<String> getPreparedRows() {
ArrayList<String> preparedRows = new ArrayList<String>();
List<String> meals = Arrays.asList("bigos", "rosół", "zapiekanka", "pierogi", "pomidorowa", "pesto", "meksykański ryż czerwony");
ArrayList<String> weekdays = getListOfWeekdays();
for (int i = 0; i < weekdays.size(); i++) {
StringBuffer row = new StringBuffer();
row.append(weekdays.get(i));
row.append(" - ");
row.append(meals.get(i));
preparedRows.add(row.toString());
}
return preparedRows;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment