Working with PHP, it is very easy to put a path scheme into a file, but in Java the schema might be different?
Can I point to a file starting, for example, by src File.separator
?
Example:
private static final String MODELS_PATH = "src" + File.separator + "models" + File.separator;
I can recover absolute path , but only if my way of pointing to a file above is correct.
Example:
File file = new File(".", MyClass.MODELS_PATH);
String absolutePath = file.getAbsolutePath();
Is the way to point to a file like MODELS_PATH
correct?