更新ahk配置

This commit is contained in:
2016-12-19 16:47:38 +08:00
parent 966ae48f0a
commit b5575183ec
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
package osc.git.eh3.test;
/**
* Created by lixiangrong on 2016/12/15.
*/
public class Test {
public static void main(String[] args) {
String s0 = "kvill";
String s1 = new String("kvill");
String s2 = new String("kvill");
System.out.println(s0 == s1);
System.out.println("**********");
s1.intern();
s2 = s2.intern(); //把常量池中"kvill"的引用赋给s2
System.out.println(s0 == s1);
System.out.println(s0 == s1.intern());
System.out.println(s0 == s2);
}
}