Test.java Source code

Java tutorial

Introduction

Here is the source code for Test.java

Source

import java.awt.Desktop;
import java.io.IOException;
import java.net.URI;

public class Test {
    public static void main(String[] a) throws Exception {
        Desktop desktop = null;
        if (Desktop.isDesktopSupported()) {
            desktop = Desktop.getDesktop();
        }

        desktop.mail("mailto", "a@a.net", null);
    }
}