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 FULL_NAME_PATTERN = "^[_A-Z a-z-]+$";

    public static boolean isFullNameValid(String fullname) {
        return fullname.matches(FULL_NAME_PATTERN);
    }
}