Java
文章平均质量分 71
tymaths
这个作者很懒,什么都没留下…
展开
-
RevStrSort
/** * Sort an array of strings in reverse order. */ package StrRegex; import java.util.*; /** * Create a comparator that returns the outcome * of a reverse string comparison. */ class RevStrC转载 2015-10-08 12:01:19 · 262 阅读 · 0 评论 -
InvertCopy
/** * Use a BufferedReader and a BufferedWriter to * copy a text file, inverting the case of letters * in the process. * * To use this program, specify the name of the * source file and the des转载 2015-10-27 22:18:22 · 188 阅读 · 0 评论 -
BufferedFileCopy
/** * Use buffered streams to copy a file. * * To use this program, specify the name * of the source file and the destination file. * For example, to copy a file called sample.dat * to a file c转载 2015-10-27 03:06:00 · 185 阅读 · 0 评论 -
WriteChars
/** * Use FileWriter to write an array of storage to a file. */ package FileIO; import java.io.*; /** * @author Administrator * */ public class WriteChars { /** * @param args */ public转载 2015-10-27 11:28:13 · 738 阅读 · 0 评论 -
ShowFile
/** * Use a FileReader to display a text file. * * To use this program, specify the name * of the file that you want to see. * For example, to see a file called Test.txt, * use the following co转载 2015-10-27 11:14:02 · 997 阅读 · 0 评论 -
WriteBytes
/** * Use FileOutputStream to write the bytes to a file. */ package FileIO; import java.io.*; /** * @author Administrator * */ public class WriteBytes { /** * @param args */ public stat转载 2015-10-26 12:29:51 · 461 阅读 · 0 评论 -
HexDump
/** * Display a file in hex. * * To use this program, specify the name * of the file that you want to see. * For example, to see a file called test.exe, * use the following command line: *转载 2015-10-25 13:24:55 · 319 阅读 · 0 评论 -
SetFileAttributes
/** * Set file attributes. * * To use the program, specify the name of the file * on the command line. for example, to set the attributes * for a file called test.tst, use the following command转载 2015-10-25 12:26:03 · 702 阅读 · 0 评论 -
SplitDemo
/** * Use split() to extract substrings from a string. */ package StrRegex; /** * @author Administrator * */ public class SplitDemo { static void showSplit(String[] strs) { for (String str :转载 2015-10-10 10:35:05 · 262 阅读 · 0 评论 -
IgnoreCaseSort
/** * Sort an array of strings, ignore case difference. */ package StrRegex; import java.util.*; /** * Create a Comparator that returns the outcome * of a case-insensitive string comparison. */转载 2015-10-08 12:03:47 · 306 阅读 · 0 评论 -
ReverseFile
/** * Use RandomAccessFile to reverse a file. * * To use this program, specify the name of the file. * For example, to reverse a file called test.txt use the * following command line: * *转载 2015-10-27 22:37:20 · 206 阅读 · 0 评论