Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static boolean match(Object src, Object pattern) {
if (src == null || src.toString().trim().isEmpty()) {
return false;
}
return src.toString().matches(pattern.toString());
}
}