?? first.java
字號:
/*
* First.java
*
* Created on 2007年12月8日, 下午2:40
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package org.Adam;
import java.util.regex.Pattern;
/**
*
* @author Administrator
*/
public class First {
/** Creates a new instance of First */
public First() {
}
public static void main(String[] args)
{
//System.out.println( Pattern.matches("[0-9]{4,5}\\-?[0-9]+","0120-8590457"));
boolean a=Pattern.matches("[0-9]{3,4}\\-?[0-9]+","0100-80457989");
if(a==true){
System.out.println("true");
}else{
System.out.println("ERROR");
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -