Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Color;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {

        Color myColor = Color.RED;

        System.out.println(Arrays.toString(myColor.getRGBComponents(null)));

    }
}