MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
Menu shortcut key mask = 2
 */

import java.awt.Toolkit;

public class MainClass {
    public static void main(String[] args) {
        Toolkit tk = Toolkit.getDefaultToolkit();
        System.out.println("Menu shortcut key mask = " + tk.getMenuShortcutKeyMask());

    }
}