码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果
[LeetCode]171 Excel Sheet Column Number
https://oj.leetcode.com/problems/excel-sheet-column-number/publicclassSolution{ publicinttitleToNumber(Strings){ if(s==null||s.isEmpty()) return0;//invalidinput char[]chars=s.toCharArray(); intr=0; for(charc:chars) { r=r*26+(c-‘A‘)+1; } returnr; } }
分类:其他好文   时间:2015-01-09 19:31:16    阅读次数:170
js主要知识轮廓笔记
一、js中的基础类型和引用类型:基础类型:1、Number2、String3、Boolean4、Undefined5、Null引用类型(内置对象):1、Object类型2、Array类型3、Date类型4、Regexp类型(字面量表示法:/[bc]at/i 构造函数方法:new RegExp(".....
分类:Web程序   时间:2015-01-09 19:17:25    阅读次数:184
ALIAS_TO_ENTITY_MAP 封装成对象
ALIAS_TO_ENTITY_MAP 封装成对象 protected List executeSQLMapQuery(String sql, Object param, int start, int limit) { Query query = null; query = this.get...
分类:其他好文   时间:2015-01-09 19:01:18    阅读次数:233
表变量和临时表
SET NOCOUNT ON;DECLARE @TestTable TABLE ( RowID INT IDENTITY PRIMARY KEY CLUSTERED, Name VARCHAR(9) NOT NULL UNIQUE, Age TINYINT NULL, r...
分类:其他好文   时间:2015-01-09 18:50:33    阅读次数:306
关于数据库中内连接与外连接的区别
inner join on :对于左表的每一条记录和右表作乘积,如果满足on条件则加入结果集,最终的记录数>=0left join on :对于左表的每一条记录和右表作乘积,如果不存在满足on条件的记录,则添加一条记录(需要返回的右表列以null表示),最终的记录数>=左表的记录数right joi...
分类:数据库   时间:2015-01-09 18:47:22    阅读次数:246
js变量
由于undefined和null两个值的比较是相等的,所以,未初始化的变量和赋值为null的变量会相等。这时,可以采用typeof变量的类型进行比较。但,建议还是养成编码的规范,不要忘记初始化变量。var box;var car = null;alert(typeof box == typeof c...
分类:Web程序   时间:2015-01-09 18:43:43    阅读次数:168
[LeetCode]152 Maximum Product Subarray
https://oj.leetcode.com/problems/maximum-product-subarray/http://blog.csdn.net/linhuanmars/article/details/39537283publicclassSolution{ publicintmaxProduct(int[]A) { if(A==null||A.length==0) return0; intlocalmin=1; intlocalmax=1; intglobal=Integer.MIN_VALU..
分类:其他好文   时间:2015-01-09 17:39:33    阅读次数:127
java并发-记一次统计变量值偏差问题
项目开发过程中, private static boolean XMLPost(String content, String sendUrl) throws Exception{ boolean bn = false; if ( null != content ) { //初始假设请求发送失败,等待正常返回200后再将失败记录数-- CommonU...
分类:编程语言   时间:2015-01-09 15:42:31    阅读次数:219
【android】LayoutInflater.inflate方法的详解及xml根元素的布局参数不起作用的问题
一、首先看带三个参数的inflate方法: public View inflate (int resource, ViewGroup root, boolean attachToRoot) 1、如果root不为null,且attachToRoot为TRUE,则会在加载的布局文件的最外层再嵌套一层root布局,这时候xml根元素的布局参数当然会起作用。 2、如果root不为null,且atta...
分类:移动开发   时间:2015-01-09 15:35:37    阅读次数:220
Shell和bash变量类型
Shell是面向过程的(bash为例)变量是进程的变量,进程结束,变量消失。bash变量类型:环境变量本地变量(局部变量):位置变量特殊变量本地变量:setVARNAME=VALUE作用域为整个bash进程局部变量:localVARNAME=VALUE作用域为当前代码段环境变量:作用域为当前shell进程及其子进..
分类:系统相关   时间:2015-01-09 12:47:53    阅读次数:224
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!