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