Last active
December 17, 2015 18:29
-
-
Save jbranchaud/5654026 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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