摘要: 输出:true 解释:string.contains()用于判断字符串string分是否包含子字符串“xxx”; 阅读全文
posted @ 2019-04-13 23:08 机械公敌 阅读(14891) 评论(0) 推荐(2) 编辑
摘要: 输出为: 0 1 Over! 阅读全文
posted @ 2019-04-13 23:02 机械公敌 阅读(1435) 评论(0) 推荐(0) 编辑
摘要: 输出:true false 解释:Integer类似于String,当Integer的值在范围[-128,127]时,Integer不会生成新的对象,会直接从缓存中获取对象的引用。当超出这个范围后,会生成新的Integer对象。 参考:https://blog.csdn.net/qq_4059301 阅读全文
posted @ 2019-04-13 22:57 机械公敌 阅读(721) 评论(0) 推荐(0) 编辑