Last active
March 2, 2017 05:10
-
-
Save heanfig/a8f5a36527c32a87a672831fc2fbe2d3 to your computer and use it in GitHub Desktop.
COLECCIONMAX.java
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
public static void main(String args[]) | |
{ | |
LinkedList<Integer> list = new LinkedList<Integer>(); | |
list.add(1); | |
list.add(2); | |
list.add(3); | |
list.add(4); | |
list.add(5); | |
System.out.println(Collections.max(list)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment