摘要: public class Swap { public static void swap(int[] data, int a, int b) { int t = data[a]; data[a] = data[b]; data[b] = t; } public static void mai... 阅读全文
posted @ 2013-01-13 21:54 N3verL4nd 阅读(232) 评论(0) 推荐(0) 编辑
摘要: package z;public class Test4_5 { static void Proc(int sel) { try { if (sel != 0) { System.out.println("no Exception "); //return; } else ... 阅读全文
posted @ 2013-01-13 14:32 N3verL4nd 阅读(146) 评论(0) 推荐(0) 编辑
摘要: RandomAccessFile RandomAccessFile是用来访问那些保存数据记录的文件的,你就可以用seek( )方法来访问记录,并进行读写了。这些记录的大小不必相同;但是其大小和位置必须是可知的。但是该类仅限于操作文件。 RandomAccessFile不属于InputStr... 阅读全文
posted @ 2013-01-13 14:19 N3verL4nd 阅读(115) 评论(0) 推荐(0) 编辑
摘要: package z;import java.io.RandomAccessFile;public class J_Test1 { public static void main(String[] args) throws Exception { RandomAccessFile f = ne... 阅读全文
posted @ 2013-01-13 14:03 N3verL4nd 阅读(623) 评论(0) 推荐(0) 编辑