Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.SortedSet;
import java.util.TreeSet;

public class Main {
    public static void main(String[] argv) throws Exception {
        SortedSet<String> set = new TreeSet<String>();
        set.add("b");
        set.add("c");
        set.add("a");

        System.out.println(set.last());
    }
}