package com.icexls;

public class ExcelCellUtil {

    static boolean isNumber(String str) {
        if (str == null || "".equals(str.trim())) {
            return false;
        }
        if (str.charAt(0) == '-') {
            str = str.substring(1);
        }
        int point = 0;
        for (int i = 0; i < str.length(); i++) {
            char ch = str.charAt(i);
            if (ch == '.') {
                point++;
            } else if (ch < '0' || ch > '9') {
                return false;
            }
        }
        if (point > 1) {
            return false;
        }
        return true;
    }
}
最近下载更多
1358849392  LV21 2023年10月10日
rookie_58  LV2 2022年5月27日
jinandfei  LV12 2021年12月8日
zhanghna799  LV3 2021年11月18日
sl0018  LV13 2021年8月27日
aaaahao  LV13 2021年7月25日
liangxiang  LV6 2020年10月15日
13188866605  LV12 2020年8月21日
wjh12345654321  LV14 2020年7月17日
wyx065747  LV67 2020年7月14日
最近浏览更多
lilily1119  LV4 2023年4月29日
夜起星河  LV8 2023年3月9日
Eddie233  LV5 2022年11月15日
yangxb2  LV10 2022年9月19日
菜鸟666  LV2 2022年8月10日
是你爸爸啊100  LV5 2022年8月8日
taoyi123  LV16 2022年7月2日
rookie_58  LV2 2022年5月27日
duanyui  LV3 2022年4月13日
JiangYing009  LV8 2022年3月22日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友