Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created May 12, 2017 08:45
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 jezinka/f1c6accab9ceba0dc0bd2426a7b69379 to your computer and use it in GitHub Desktop.
Save jezinka/f1c6accab9ceba0dc0bd2426a7b69379 to your computer and use it in GitHub Desktop.
@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