Skip to content

Instantly share code, notes, and snippets.

@jbranchaud
Last active December 17, 2015 18:29
Show Gist options
  • Save jbranchaud/5654026 to your computer and use it in GitHub Desktop.
Save jbranchaud/5654026 to your computer and use it in GitHub Desktop.
import java.util.List;
public class ListPrinter {
public static void printList(List<Integer> list) {
for(Integer i : list) {
System.out.println(i.toString());
}
}
public static void printList(List<String> list) {
for(String s : list) {
System.out.println(s);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment