Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Arrays;
- import java.util.TreeSet;
- public class DinctionaryOutput {
- public static void main(String[] args) {
- String[] fruits = { "grape", "orange", "apple", "kiwi" };
- System.out.println(new TreeSet<String>(Arrays.asList(fruits)).last());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement