
后端开发(java、Springboot)
文章平均质量分 82
后端开发
ljh0302
软件研发工程师
后端Java,前端Angular
展开
-
Spring开发-Bean
1、Bean的定义 In Spring, the objects that form the backbone of your application and that are managed by the Spring IoC container are calledbeans. A bean is an object that is instantiated, assembled, and...原创 2019-11-28 11:24:47 · 210 阅读 · 0 评论 -
字符串的相等比较
1、== s1==s2 当且仅当字符串s1,s2的内存地址相同并且值也相同的时候,才为true 2、String.equals s1.equals(s2) 当字符串的内容即值相同时,就为true 举例: String s1 = "good"; String s2="good"; s1 == s2 为 true ,因为它们指向了同一个对象 String s1 = new String转载 2015-05-23 15:27:14 · 3057 阅读 · 0 评论 -
浅谈Java中的equals 和 ==
原文作者:海子 原文地址: http://www.cnblogs.com/dolphin0520/ 在初学Java时,可能会经常碰到下面的代码: 1 String str1 = new String("hello"); 2 String str2 = new String("hello"); 3 4 System.out.println(str1==str2);转载 2015-09-28 16:28:52 · 392 阅读 · 0 评论 -
Java数据类型中String、Integer、int相互间的转换
原文地址:http://www.blogjava.net/ljc-java/archive/2011/02/28/345344.html 1.Integer转换成int的方法 Integer i = new Integer(10); int k = i.intValue(); 即Integer.intValue(); 2.int转换成Integer int i = 10;转载 2016-03-29 18:18:23 · 456 阅读 · 0 评论 -
linux下如何配置jdk,安装eclipse并且创建快捷方式
一、配置jdk (1)官网下载JDK,放置在Downloads目录下 版本为jdk-8u45-linux-i586.tar.gz (2)解压复制到/usr/lib/jvm下,并移动到/usr/lib/jvm/java-8-sun文件夹 $ sudo tar zxvf Downloads/jdk-8u45-linux-i586.tar.gz -C /usr/lib/jvm $ cd原创 2015-04-16 22:09:50 · 966 阅读 · 0 评论