码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
[ES6] 18. Map
ES6 provides Map, it is a set of k-v pair. Key can be number, string, object, function and even undefined.var m = new Map();Methods:1. set(k,v)m.set("...
分类:其他好文   时间:2015-01-02 06:29:26    阅读次数:167
[leetcode] Scramble string
题目:Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representat...
分类:其他好文   时间:2015-01-02 06:29:15    阅读次数:197
jdbc mysql - Column count doesn't match value count at row 1.
该句的意思是,insert操作的SQL语句里列的数目和后面值的数目不一致.比如说,String sql = "insert into t_aqi(city_name, cur_date, aqi_val, no2_val, no2_val) values(?, ?, ?, ?)";这里很明显,t_a...
分类:数据库   时间:2015-01-02 06:23:39    阅读次数:220
[C#编程指南]重写ToString方法
C# 中的每个类或结构都隐式继承 Object 类。 因此,C# 中的每个对象都会获得 ToString 方法,此方法返回该对象的字符串表示形式。 例如,所有 int 类型的变量都有一个 ToString 方法,此方法可让这些变量将其内容作为字符串返回: int x = 42; string str...
分类:Windows程序   时间:2015-01-02 01:10:52    阅读次数:163
【java解惑】前缀自增自减和后缀自增自减问题
如下代码:publicclassExample025{ publicstaticvoidmain(String[]args){ intape=100; intit=100; intape_it=100; for(inti=0;i<100;i++){ ape--; it=it--; ape_it=--ape_it; } System.out.println("ape="+ape); System.out.println("it="+it);//e..
分类:编程语言   时间:2015-01-01 23:58:37    阅读次数:352
Dialog 自定义使用3(回调点击事件)
1 , Dialog布局 2, 自己定义dialog 类public class ConfirmDialog extends Dialog { private Context context; private String title...
分类:其他好文   时间:2015-01-01 23:42:45    阅读次数:178
JavaScript学习笔记——3.系统对象
1.常用对象类型 时间(Date)对象 数学(Math)对象 字符串(String)对象 正则表达式(RegExp)对象 数组(Array)对象2.Date对象: //var date= new Date(); .getYear() //获取年13 .getFullYear() //获...
分类:编程语言   时间:2015-01-01 22:24:43    阅读次数:200
java:产生小数位数为2的随机概率,使得和为1
public static List setDataSec(List instno) { List result = new ArrayList(); String[] mon ={"2014-01","2014-02","2014-03","2014-04"}; int[] flag ={1...
分类:编程语言   时间:2015-01-01 22:22:40    阅读次数:273
LeetCode Longest Valid Parentheses
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2015-01-01 21:10:28    阅读次数:149
个人理解request.getRequestDispatcher()的两个方法forward()/include()。哪里错了,还麻烦各位提醒!
首先,解释一下request.getRequestDispatcher(String arg0)是"转向"的意思,跟response.sendRedirect(String arg0)重定向是不一样的;1..request.getRequestDispatcher(String arg0)---转向...
分类:其他好文   时间:2015-01-01 21:09:46    阅读次数:52393
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!