public static void main(String[] args) {
String a = "/2010/6/13/19/766105207591607338053525248042284292/1.0";
String b = "/2010/10/8/19/766105208164534487403083462088868610/1.0";
System.out.println(a.hashCode());
System.out.println(b.hashCode());
System.out.println(a.hashCode() == b.hashCode());
System.out.println(System.identityHashCode(a));
System.out.println(System.identityHashCode(b));
// 1750476839
// 1750476839
// true
//23746042
//3327002
}
转载于:https://blog.51cto.com/suexiukjung/1127584