importjava.io.File;importjava.io.RandomAccessFile;publicclassSplitFile {publicstaticvoidmain(String[] args)throwsException {File src =newFile("D:/java...
分类:
其他好文 时间:
2015-04-03 13:14:35
阅读次数:
127
String a; 申明一个string类型的 a,即没有在申请内存地址,更没有在内存任何指向引用地址;String a = null ; 申明一个string类型的 a,同时在内存里申请了一个地址,但是该地址不指向任何引用地址;String a = "" ;申明一个string类型的 a,既在内存...
分类:
编程语言 时间:
2015-04-03 13:04:26
阅读次数:
138
自从JavaAPI&RegExp用熟练了之后就变得越来越任性越来越懒了):public class Solution { public int strStr(String haystack, String needle) { return haystack.indexOf(ne...
分类:
其他好文 时间:
2015-04-03 13:04:15
阅读次数:
139
static void Main(string[] args) { double[] a = new double[10]; double sum = 0; for (int i = 0; i < a.Length; i...
分类:
编程语言 时间:
2015-04-03 12:55:52
阅读次数:
123
function TFtpContentThd.DeleteDirectory(NowPath: string): Boolean;var search: TSearchRec; ret: integer; key: string;begin if NowPath[Length(NowPat...
classHello{
publicstaticvoidmain(String[]args){
System.out.println("Hello,world!");
}
}
分类:
其他好文 时间:
2015-04-03 11:38:20
阅读次数:
98
problem:
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
Hide Tags
Math String
题意:二进制数相加,二进制数用string表示
...
分类:
其他好文 时间:
2015-04-03 11:20:12
阅读次数:
121
常用的字符串转date ,和日期转字符串的方法......
分类:
其他好文 时间:
2015-04-03 11:16:57
阅读次数:
137
Emoji表情字符现在在APP已经广泛支持了。但是Mysql的UTF8编码对Emoji字符的支持却不是那么好。所以我们经常会遇到这样的异常:
Incorrect string value: '\xF0\x90\x8D\x83...' for column
原因是Mysql里UTF8编码最多只能支持3个字节,而Emoji表情字符使用的UTF8编码,很多都是4个字节,有些甚至是6个字节。
...
分类:
编程语言 时间:
2015-04-03 11:16:04
阅读次数:
187
//Func fc = delegate(string a) //{ // a += "你好"; // return a; //}; //MessageBox.Show(fc...
分类:
其他好文 时间:
2015-04-03 11:13:56
阅读次数:
191