February 2014
Beginner
1248 pages
62h 25m
English
A separator character is used to separate directories and files in a path. On a Windows computer, the separator character is a backslash (\). On a Linux or Mac OS X system, it’s a forward slash (/). Java processes both characters identically in a path name. For example, if we were to use the path
c:\Program Files\Java\jdk1.6.0_11\demo/jfc
which employs each separator character, Java would still process the path properly.
Good Programming Practice 15.1
When building Strings that represent path information, use File.separator to obtain the local computer’s proper separator character rather than ...
Read now
Unlock full access