public class EmployeeDemo { //方法一: public int search(String str,String strRes) {//查找字符串里与指定字符串相同的个数 int n=0;//计数器 // for(int i = 0;i<str.length();i++) { // // } while(str.indexOf(strRes)!=-1) { int i = str.indexOf(strRes); n++; str = str.substring(i+
public class IOTest { // 存储获取的文件绝对路径 private static List<String> list = new ArrayList<String>(); public static void main(String[] args) { File file = new File("D:/holle"); Long sta = System.currentTimeMillis(); mkdirAll(file); for(St
先贴一段描述:Qt文档原文: Detailed Description The QAction class provides an abstract user interface action that can be inserted into widgets. In applications many common commands can be invoked via menus, toolbar buttons, and keyboard shortcuts. Since the user
inux下的find命令用来查找文件,通过man find就知道它是无所不能的.所以按照文件大小来查找文件就不在话下.从man find搜索size,可以看到如下信息: -size n[cwbkMG] File uses n units of space. The following suffixes can be used: b -byte blocks (this is the default if no suffix is used) c for bytes w for two-byte