Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.25 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. File file = new File("");
  2.                 String path = null;
  3.                 try {
  4.                         path = file.getCanonicalPath() + "/../";
  5.                         System.out.println(file.getCanonicalPath());
  6.                 } catch (IOException e1) {
  7.                         // TODO Auto-generated catch block
  8.                         e1.printStackTrace();
  9.                 }