How to get the identity hash codes for files
publicstaticvoid main(String[] args){
File file1 = new File("a");
File file2 = new File("b");
File file3 = new File("c");
int ihc1=System.identityHashCode(file1);
int ihc2=System.identityHashCode(file2);
int ihc3=System.identityHashCode(file3);
System.out.println(ihc1);
System.out.println(ihc2);
System.out.println(ihc3);
}
Output:
169174794
52414130
455987640