Skip to content

Instantly share code, notes, and snippets.

@darrenbkl
Last active January 23, 2020 11:39
Show Gist options
  • Save darrenbkl/f0ae479c058e6e6da5d2b33a4133babc to your computer and use it in GitHub Desktop.
Save darrenbkl/f0ae479c058e6e6da5d2b33a4133babc to your computer and use it in GitHub Desktop.
public static void increaseEachElementByOne(List<Integer> list) {
for (int I = 0; I < list.size(); I++) {
list.set(I, list.get(i) + 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment