Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static final String LICENSE_PATTERN = "^[A-Z a-z0-9]+$";

    public static boolean isLicenseValid(String license) {
        return license.matches(LICENSE_PATTERN);
    }
}