Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Main {
    public static void main(String... args) {
        List<String> names = Arrays.asList("XML", "Java", "HTML", "CSS");
        names.sort(Collections.reverseOrder());
        System.out.println(names);
    }
}