2012年10月27日
摘要: 1.冒泡排序:public void maoPaoSort(){ Integer[] in = new Integer[]{3,18,38,16,2,5,9,42,1,19,60}; int temp; for(int i =0; i < in.length;i++){ for(int j = 0;j <= in.length-1;j++){ if(in[i] < in[j]){ temp=in[j]; in[j]=in[i]; in[i]=temp; } ... 阅读全文
posted @ 2012-10-27 14:42 老茶壶 阅读(220) 评论(0) 推荐(1) 编辑
摘要: public void copyFile(String formPath,String toPath){ File file1 = new File(formPath);//源文件路径 File file2 = new File(toPath);//目标文件路径 String fileName = file1.getName(); double fileSize = (file1.length())/1024/1024; System.out.println("***********************文件属性×××××× 阅读全文
posted @ 2012-10-27 12:15 老茶壶 阅读(2484) 评论(0) 推荐(0) 编辑