Added 14 solutions
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.Scanner;
|
||||
|
||||
class Solution{
|
||||
|
||||
public static void main(String []args){
|
||||
Scanner in = new Scanner(System.in);
|
||||
while(in.hasNext()){
|
||||
String IP = in.next();
|
||||
System.out.println(IP.matches(new MyRegex().pattern));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user