15-08-常用对象API(String类-intern方法)
2015-08-10 22:54
459 查看
package cn.itcast.string.demo; public class StringInternDemo { public static void main(String[] args) { /* * intern():对字符串池进行操作的 */ String s1 = new String("abc"); String s2 = s1.intern(); System.out.println(s2); System.out.println(s1==s2); } }
相关文章推荐
- 朴素贝叶斯
- ios设置UILabel中文字的不同颜色和字体字号
- Asp.net mvc web api 在项目中的实际应用
- ubuntu的系统设置不见了怎么找回
- Andrew Ng Machine Learning 专题【Logistic Regression & Regularization】
- 第82讲:Scala中List的ListBuffer是如何实现高效的遍历计算的?学习笔记
- UVALive 7043 International Collegiate Routing Contest(字典树)
- word2vec学习+使用介绍
- 最最实用的android studio设置教程
- 15-06-常用对象API(String类-常见功能-判断)
- 15-07-常用对象API(String类-常见功能-比较)
- mysql could not be resolved: Name or service not known
- MFC程序使用控制台
- UIViewController加载显示过程
- Android与iOS之static关键字异同
- 左孩子右兄弟树的递归与非递归、深度与广度遍历
- 15-05-常用对象API(String类-常见功能-转换)
- hdu 5357
- hdu 5357 2015-08-10 22:52 7人阅读 评论(0) 收藏
- spring 注解注入方式