首页>代码>Java swing实现Ftp客户端工具(MVC模式)>/FtpClient/src/com/exercise/controller/utils/StringUtil.java
package com.exercise.controller.utils;

/*
 *  说明:字符串工具类
 */
public class StringUtil {
    
    //判断字符串为空
    public static boolean isEmpty(String str) {
        return str == null || str.length() == 0;
    }
    
    //判断字符串非空
    public static boolean isNotEmpty(String str) {
        return !StringUtil.isEmpty(str);
    }

    //去除服务器文件路径中的多余标记
    static String trimFilePath(String path) {    
        while(path.indexOf("//")>-1){
            path = path.replace("//", "/");                        
        }
        return path;
    }
    
}
最近下载更多
zengxq056  LV2 2022年10月3日
annazhang  LV29 2021年7月24日
Little already  LV3 2021年6月22日
lilinfeng  LV1 2021年5月25日
冬日  LV1 2021年5月21日
陈学文  LV1 2021年4月30日
2469095052  LV8 2020年12月14日
guaixia163  LV13 2020年11月11日
675104182  LV14 2020年9月22日
小小滑头鱼  LV26 2020年7月15日
最近浏览更多
kevin_2023  LV1 2023年10月26日
yangxb2  LV10 2023年7月11日
as365049954  LV2 2022年10月16日
zengxq056  LV2 2022年10月3日
1576765285  LV1 2022年9月13日
qwqw900619  LV4 2022年9月7日
哎呀马吖  LV6 2022年8月25日
qsyqsy 2022年6月2日
暂无贡献等级
sunfanlin  LV2 2022年5月18日
June06  LV2 2022年5月3日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友