码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
[LeetCode] Length of Last Word
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:其他好文   时间:2015-03-06 14:08:58    阅读次数:109
Delphi字符串、PChar与字符数组之间的转换
Delphi字符串、PChar与字符数组之间的转换 ? Delphi字符串、PChar与字符数组之间的转换 设有以下三个变量: var s:string; p:pchar; a:array[1..20] of char; 那么三者之间的转换如下: 1、字符串到P...
分类:编程语言   时间:2015-03-06 12:54:51    阅读次数:167
校招准备
1.单实例的静态类实现、枚举实现、序列化时readResolve方法2.多个参数的构造方法用builder方式实现,内存中序列化的使用bai3.Service provider framework4.一个拥有private的构造方法的类是不能被继承的5.String s=String("two") ...
分类:其他好文   时间:2015-03-06 12:37:33    阅读次数:121
map遍历的四种方法
public static void main(String[] args) {Map map = new HashMap();map.put("1", "value1");map.put("2", "value2");map.put("3", "value3");//第一种:普遍使用,二次取值Sy...
分类:其他好文   时间:2015-03-06 12:35:47    阅读次数:112
JSON.parseObject笔记
关于JSON.parseObject使用记录1.新建beanNewBean:public class NewBean{ private String name;private String age;public void setName(String name){ this.name = name....
分类:Web程序   时间:2015-03-06 12:30:57    阅读次数:137
JavaScript-常用正则函数(适合忘记时看)
test:测试string是否包含有匹配结果,包含返回true,不包含返回false。 match:根据pattern进行正则匹配,如果匹配到,返回匹配结果,如匹配不到返回null search:根据pattern进行正则匹配,如果匹配到一个结果,则返回它的索引数;否则返回-1 replac...
分类:编程语言   时间:2015-03-06 12:30:29    阅读次数:139
MVC视图中下拉框的使用
首先要在controller 中将选项设置成 selecList对象,并赋值给viewBag动态对象。 public ActionResult Index(string movieGenre,string searchString) { var GenreLst ...
分类:Web程序   时间:2015-03-06 12:27:03    阅读次数:342
读取SIM卡相关信息
关键代码:TelephonyManager tm = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE); String imei = tm.getDeviceId(); //取出IMEI String ...
分类:其他好文   时间:2015-03-06 12:20:48    阅读次数:253
1050. String Subtraction
Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to calculate S1 - S2 for any given strings. However,...
分类:其他好文   时间:2015-03-06 11:21:17    阅读次数:140
LeetCode-Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,...
分类:其他好文   时间:2015-03-06 10:29:22    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!