码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Java Date时间比较大小
String DateStr1 = "2013-10-01 10:10:10";String DateStr2 = "2013-10-02 11:11:11";DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");Da...
分类:编程语言   时间:2015-03-14 21:25:22    阅读次数:309
StringUtils工具类的常用方法
StringUtils方法的操作对象是java.lang.String类型的对象,是对JDK提供的String类型操作方法的补充,并且是null安全的(即如果输入参数String为null则不会抛出NullPointerException,而是做了相应处理,例如,如果输入为null则返回也是null...
分类:其他好文   时间:2015-03-14 21:24:43    阅读次数:131
HDU中大数实现的题目,持续更新(JAVA实现)
HDU1002:大数加法,PE了N次import java.util.Scanner;import java.math.*;public class Main{ public static void main(String[] args) { Scanner cin = n...
分类:编程语言   时间:2015-03-14 21:22:07    阅读次数:179
SDUT中大数实现的题目,持续更新(JAVA实现)
SDUT2525:A-B(模板题)import java.util.Scanner;import java.math.*;public class Main{ public static void main(String[] args) { Scanner ci = new...
分类:编程语言   时间:2015-03-14 21:21:49    阅读次数:215
Problem 1000 to 1002
Problem 1000 问题: 输入两个正整数A,B,输出两个正整数之和A+B using System; //Input integer number A,B,output A+B. class Program { static void Main(string[] args) { string...
分类:其他好文   时间:2015-03-14 21:21:17    阅读次数:121
Swift嵌套函数
可以将函数定义在其他函数中,成为嵌套函数funccaculate(opr:String)->(Int,Int)->Int{funcadd(a:Int,b:Int)->Int{returna+b}funcsub(a:Int,b:Int)->Int{returna-b}varresult:(Int,Int)->Intswitchopr{case"+":result=addcase"-":result=subdefault:result=add}..
分类:编程语言   时间:2015-03-14 20:08:50    阅读次数:151
String和Date,Timestamp之间的转换
一、String与Date(java.util.Date)互转 1.1 String -> DateJava代码StringdateStr=“2010/05/0412:34:23″;Datedate=newDate();//注意format的格式要与日期String的格式相匹配DateFormats...
分类:其他好文   时间:2015-03-14 19:57:19    阅读次数:148
远程获取服务器网卡数和DNS
public List GetDns(string ClientIP,ref int NetworkAdapterCount) { List ls = new List(); string strClass = "Win32_...
分类:其他好文   时间:2015-03-14 19:54:54    阅读次数:109
String-StringBuffer-StringBuilder详解和区别
String-StringBuffer-StringBuilder详解和区别简要的说, String 类型和 StringBuffer类型的主要性能区别其实在于 String 是不可变的对象, 因此在每次对 String 类型进行改变的时候其实都等同于生成了一个新的 String 对象,然后将指针指...
分类:其他好文   时间:2015-03-14 19:51:57    阅读次数:89
Leetcode-3 Longest Substring Without Repeating Characters
?? 1.3- Longest Substring Without Repeating Characters Given a string,find the length of the longest substring without repeating characters. Forexample, the longest substring without repeating l...
分类:其他好文   时间:2015-03-14 18:40:32    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!