The system properties (accessible via System.getProperties()) contain things like file and path separators for the runtime environment, but you'll probably find that the methods of the various classes in java.io can do all the heavy lifting for you.
If you want to get really fancy, you could always have a play with java.nio.*

Leave a comment: