码迷,mamicode.com
首页 >  
搜索关键字:equals == 对象比较    ( 4743个结果
angular的工具方法笔记(equals, HashKey)
分别是angular脏值检测的工具方法equals和 类HashKey的使用方法ng
分类:其他好文   时间:2014-12-17 20:33:31    阅读次数:1133
Java.操作字符串的方法
方法描述boolean equals(str) 如果调用字符串包含的字符序列与str一样,则返回trueint length()获取字符串的长度char charAt(index)获取index指定的索引位置的字符int compareTo(str)如果调用字符串小于str,则返回小于0的数;如果调...
分类:编程语言   时间:2014-12-17 17:54:31    阅读次数:171
Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. For example: Given the below binary tree and sum ...
分类:其他好文   时间:2014-12-17 14:44:41    阅读次数:191
完善:网上的手机号和车牌号的正则表达式
现在一搜手机号正则和车牌号正则,都是以前写的 现在手机号更新了177的,147的等等 所以,手机号正则可完善一下: public static boolean checkmobilePhone(String mobilePhone){ return (mobilePhone==null || mobilePhone.equals("") || !mobilePh...
分类:移动开发   时间:2014-12-16 17:12:44    阅读次数:131
String.subString的用法
在做项目的时候,碰到一个过滤字符串的问题,因为一直无法正常的描述完整这个字符串的信息,所以想到截取部分差异化的字符来解决这个问题 String,substrinf(start,end); 这个函数的使用的时候,可以很方便的截取到你想的的部分字符串 再结合String.equals();来做一个比较,就可以很轻松的过滤掉含有这类字符串的信息了 例如: String text = "Mob...
分类:其他好文   时间:2014-12-16 15:08:01    阅读次数:171
拼接sql
String whereArgs = taskTable + " where 1=1 "; if (upCheck) { whereArgs += " and type = 2 "; } if (gameID != null && !gameID.equals("0")) { where...
分类:数据库   时间:2014-12-16 14:56:16    阅读次数:151
LeetCode Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:其他好文   时间:2014-12-16 00:50:14    阅读次数:223
Bitmap 和Drawable 的区别
Bitmap - 称作位图,一般位图的文件格式后缀为bmp,当然编码器也有很多如RGB565、RGB888。作为一种逐像素的显示对象执行效率高,但是缺点也很明显存储效率低。我们理解为一种存储对象比较好。 Drawable - 作为Android平下通用的图形对象,它可以装载常用格式的图像,比如GI....
分类:其他好文   时间:2014-12-14 21:16:49    阅读次数:152
Path Sum
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/41910495 Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. 思路: (1)题意为给定一个(每个节点带有数值)二叉...
分类:其他好文   时间:2014-12-13 18:04:21    阅读次数:176
Java SE 基础知识(String,Array)
String 类:1. 对于String对象的相等性判断来说,请使用equals()方法,而不是==。String的equals()是判断当前字符串与传进来的字符串的内容是否一致。2. String是常量,其对象一旦创建完毕就无法改变。当使用+拼接字符串时,会生成新的String对象,而不是向原有的...
分类:编程语言   时间:2014-12-13 17:47:20    阅读次数:202
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!