Here you can find the source of IsJCBCreditCard(String UnformattedAccountNumber)
private static boolean IsJCBCreditCard(String UnformattedAccountNumber)
//package com.java2s; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { private static boolean IsJCBCreditCard(String UnformattedAccountNumber) { Pattern p = Pattern.compile("^(?:2131|1800|35\\d{3})\\d{11}$"); Matcher m = p.matcher(UnformattedAccountNumber); return m.matches(); }/*from w w w. j av a 2 s . c om*/ }