Constructing a Path On Windows, this example creates the path \blash a\blash b. On Unix, the path would be /a/b. String path = File.separator + "a" + File.separator + "b";