Softwaretechnik-II/testing/AufgabeEmailMatcher/ExampleMatcher.java

18 lines
408 B
Java
Raw Permalink Normal View History

2024-10-30 19:29:50 +01:00
import java.util.regex.Pattern;
import java.util.regex.Matcher;
public class ExampleMatcher {
public static void main(String[] args) {
if (args.length<1) {
System.out.println("No data provided as command line argument!");
} else {
if (EmailMatcher.isValidEmail(args[0])) {
System.out.println("Valid email address");
}
}
}
}