码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
文件分割
importjava.io.File;importjava.io.RandomAccessFile;publicclassSplitFile {publicstaticvoidmain(String[] args)throwsException {File src =newFile("D:/java...
分类:其他好文   时间:2015-04-03 13:14:35    阅读次数:127
java中String a ; String a = null 和String a = ""的区别
String a; 申明一个string类型的 a,即没有在申请内存地址,更没有在内存任何指向引用地址;String a = null ; 申明一个string类型的 a,同时在内存里申请了一个地址,但是该地址不指向任何引用地址;String a = "" ;申明一个string类型的 a,既在内存...
分类:编程语言   时间:2015-04-03 13:04:26    阅读次数:138
LeetCode - Implement strStr()
自从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
转:delphi 删除指定文件夹下所有文件
function TFtpContentThd.DeleteDirectory(NowPath: string): Boolean;var search: TSearchRec; ret: integer; key: string;begin if NowPath[Length(NowPat...
分类:Windows程序   时间:2015-04-03 12:54:48    阅读次数:713
Hello, World!
classHello{ publicstaticvoidmain(String[]args){ System.out.println("Hello,world!"); } }
分类:其他好文   时间:2015-04-03 11:38:20    阅读次数:98
leetcode || 67、Add Binary
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
【异常处理】Incorrect string value: '\xF0\x90\x8D\x83...' for column... Emoji表情字符过滤的Java实现
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
用LINQ方法增删改查
//Func fc = delegate(string a) //{ // a += "你好"; // return a; //}; //MessageBox.Show(fc...
分类:其他好文   时间:2015-04-03 11:13:56    阅读次数:191
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!