MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.awt.Color;

public class MainClass {
    public static void main(String[] a) {
        Color myBlack = new Color(0, 0, 0); // Color black
        Color myWhite = new Color(255, 255, 255); // Color white
        System.out.println(myBlack.equals(myWhite));
    }
}