Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private final static String regexVISA = "[A-Z0-9]*";

    public static boolean validateVISA(String passportNo) {
        if (passportNo.matches(regexVISA)) {
            return true;
        } else {
            return false;
        }
    }
}