摘要: Q:有关转义符以及另外一种转换方法(可能出现负数的那一个)?以及string的一些常用方法?// ip.endsWith(suffix)// ip.indexOf(c)// ip.indexOf(string)// ip.isEmpty()// ip.lastIndexOf(c/str)// ip.replace(oldChar, newChar)// ip.split(regularExpression)// ip.startsWith(prefix)// ip.subSequence(start, end)// ip.substring(start, end)// ip.trim(); 阅读全文
posted @ 2013-08-31 18:21 西瓜君 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 算数运算符:单目:+(正)、-(负)、++(自增)、--(自减)双目:+、-、*、/、%(取余),以及组合+=,-=三目:(a>b)?true:false a>b返回true,否则false关系运算符:==、!=、>=、、、>、>>>、>>=、:右移>:右移(高位不会补0,如果是为了得到32位中的某8位,建议再进行&运算)>>=:右移赋值,类似+=,eg a=9,a>>>=3,1001右移3位=0001,so a=1.<<<=:左移赋值 阅读全文
posted @ 2013-08-31 16:24 西瓜君 阅读(121) 评论(0) 推荐(0) 编辑