Skip to content

Instantly share code, notes, and snippets.

对工程师成长不利的环境,包括但不限于:
🕰️ 短期利益导向
🌟 搞个人崇拜
💻 业务产品驱动非技术驱动
🥊 内部争斗厉害
public class VINUtil {
/**
* 检验车辆识别码工具类
* @param vin
* @return
*/
public static boolean checkVIN(String vin) {
Map<Integer, Integer> vinMapWeighting = null;
Map<Character, Integer> vinMapValue = null;
vinMapWeighting = new HashMap<Integer, Integer>();
import org.apache.commons.lang.StringUtils;
public class EmojiFilter {
public EmojiFilter() {
}
public static boolean containsEmoji(String source) {
if (StringUtils.isBlank(source)) {
return false;
} else {
public class BankCardValidate {
/*
校验过程:
1、从卡号最后一位数字开始,逆向将奇数位(1、3、5等等)相加。
2、从卡号最后一位数字开始,逆向将偶数位数字,先乘以2(如果乘积为两位数,将个位十位数字相加,即将其减去9),再求和。
3、将奇数位总和加上偶数位总和,结果应该可以被10整除。
*/
/**
* 校验银行卡卡号
*/