How to get the identity hash codes for files
2013-07-04 21:00
344 查看
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
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
相关文章推荐
- How to locate the log files and troubleshoot Rapid Install for Release 12.0.x and 12.1.x [ID 452120.1]
- how to get the default maximum heap size for Sun's JVM from Java SE 6 or 7
- How to get the digest hash
- How to get the MouseEvent coordinates for an element that has CSS3 Transform?
- How to create a custom directory for app files inside the ~/Library/Application Support directory.
- How to get the MouseEvent coordinates for an element that has CSS3 Transform?
- How to get the RGB values for a pixel on an image on the iphone
- How To Create Patch Files for the MSDE 2000 Sample.msi File
- How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?
- how to get the Authorization of adobe acrobat 8.0 for free
- Science Says This Is How to Make the Perfect First Impression You only get one chance for a first i
- How to get the MD5 checksum for a file: md5sum, digest, csum, fciv
- How to get files to show up in the Process Monitor/Report Repository
- How to get the latest FFmpeg binaries for Windows
- How to get root access for other users with the visudo
- How to get the MouseEvent coordinates for an element that has CSS3 Transform?
- How to get the content of the 'identity' section in web.config
- How to get the HttpServletRequest in Struts 2
- How to collect the full path name of the files in ASM diskgroups (文档 ID 888943.1)
- How To Get Log, Trace Files In OA Framework Pages And Concurrent Request Programs