Skip to content

Instantly share code, notes, and snippets.

@ucguy4u
Created September 24, 2020 02:31
Show Gist options
  • Save ucguy4u/7a7de55786c540708513f0e189f89054 to your computer and use it in GitHub Desktop.
Save ucguy4u/7a7de55786c540708513f0e189f89054 to your computer and use it in GitHub Desktop.
import java.util.ArrayList;
import java.util.List;
/**
* @author uschauha
*/
public class TestHeap {
public static void main(String[] args) {
List<String> myList = new ArrayList<String>();
myList.add("One");
myList.add("Two");
myList.add("Three");
printList(myList);
}
private static void printList(List<String> myList) {
System.out.println(myList);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment