File class has two strings, separator and path-separator. What's the difference between the two?
file java path-separator
The File.pathSeparator separates each file from its path. For example, when setting the path for a window environment variable, Separate multiple file paths with ;. File.pathSeparator separates files with ;
File.separator is a method that separates the path of a file, such as \, /. In Windows, C:\Documents\Test serves to separate these paths.
© 2024 OneMinuteCode. All rights reserved.