java小工具類

2021-08-03 06:53:38 字數 984 閱讀 3124

/**

* 小工具集合類

*@author hp

* */

public

class

utils catch (classnotfoundexception e) catch (sqlexception e)

return conn;

}/**

* 讀取txt檔案

*@param filepath 檔案路徑

*/public

static

void

readtxtfile(string filepath)

system.out.println("讀取"+num+"行檔案!");

read.close();

}else

} catch (exception e)

}/**

* 向檔案寫入

*@param content 寫入內容

*@param filepath 檔案路徑

*/public

static

void

writetxtfile(string content,string filepath) catch (ioexception e)

}/**

* 生成32位隨機id

*@return

*/public

static string newuuid()

/*** 正則工具

*@param str 需要篩選的字串

*@param matcher 匹配器

*@return 結果

*/public

static string regular(string str,string matcher);

int index=0;

while(m.find())

return result;

}}

小工具 tree工具

wangyetao linux u1604 tree l 1 bin boot cdrom dev etc home initrd.img boot initrd.img 4.4.0 116 generic initrd.img.old boot initrd.img 4.4.0 112 gener...

簡單桌面搜尋小工具 java

乙個簡單的桌面搜尋小工具 主要功能 功能一 檔案搜尋 1按照檔名搜尋 2按照副檔名搜尋 3按照字尾名搜尋 功能二 文字檢索 主類 public class mainclass 選單 public class menu 以下三個類實現檔案搜尋 檔案搜尋 public class search 最長公共...

幾個小工具

1 svn 輕量級的版本控制 2 incredibuild 分布式的編譯工具,對於大專案編譯很有好處,在團隊每個成員的機器上安裝一人,能極大的提高 編譯效率 3 dbg 中文幫助文件 http www.dbgtech.net windbghelp index.html 4 visualassit x...