i tried a program comparing C:\Program Files and C://Program Files i checked with compareTo()==0 it comes they are equal. But i doubt if there is any difference between //&\
Is there any difference? what is the difference between c:/program files and //?
i tried a program comparing C:\Program Files and C://Program Files i checked with compareTo()==0
Share
There is no difference, at least in Sun’s implementation. The
Win32FileSystemnormalizes paths by converting slashes and removing duplicate slashes.If you want to be 100% portable, use
File.separator