Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@NonNull
private String[] getMealIds(List<Meal> meals) {
String[] stringArgs = new String[meals.size()];
for (int i = 0; i < meals.size(); i++) {
stringArgs[i] = Long.toString(meals.get(i).getId());
}
return stringArgs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment