Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static void checkColors(int[] colors) {
        if ((colors == null) || (colors.length == 0))
            throw new IllegalArgumentException("You must provide at least 1 color");
    }
}