MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
Color model = DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0
 */

import java.awt.Toolkit;

public class MainClass {
    public static void main(String[] args) {
        Toolkit tk = Toolkit.getDefaultToolkit();
        System.out.println("Color model = " + tk.getColorModel());

    }
}