zsh_root
2024-01-02 7b595546af704983dbafcd0d385c8768ddacefc2
1
2
3
4
5
6
7
8
9
10
11
package Method;
 
import java.util.regex.Pattern;
 
/**ÓÃÓÚÅжÏÊäÈëµÄÊÇ·ñΪÊý×Ö*/
public class IsNumber {
    public static boolean isNumeric(String str){
        Pattern pattern = Pattern.compile("[0-9]*");
        return pattern.matcher(str).matches();  
    }
}