public static boolean inPool(String s) { String s2 = s.intern(); if (s2 == s) return true; return false; }
检测一个字符串是否在jvm的常量池中(原创)
检测一个字符串是否在jvm的常量池中
猜你喜欢
转载自kongcodecenter.iteye.com/blog/1340753
今日推荐
周排行