Skip to content

Instantly share code, notes, and snippets.

@harrisonbrock
Created January 30, 2019 18:21
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 harrisonbrock/e71a3cef853d5995966406388cf9523d to your computer and use it in GitHub Desktop.
Save harrisonbrock/e71a3cef853d5995966406388cf9523d to your computer and use it in GitHub Desktop.
public static void printList(List<String> list) {
for (int index = 0; index < list.size(); index++) {
// Get String at index;
String name = list.get(index);
// print name;
System.out.println(name);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment