fork download
  1. import java.io.*;
  2.  
  3. class Program {
  4. public static void main (String[] args) {
  5. File path = new File("src", "models");
  6. System.out.println(path.getPath());
  7. System.out.println(path.getAbsolutePath());
  8. File novoPath = new File(".", path.getPath());
  9. System.out.println(novoPath.getPath());
  10. System.out.println(novoPath.getAbsolutePath());
  11. }
  12. }
  13.  
  14. //
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
src/models
/home/TEglwe/src/models
./src/models
/home/TEglwe/./src/models