Skip to content

Instantly share code, notes, and snippets.

@tuphamphuong
Created November 21, 2016 07:54
Show Gist options
  • Save tuphamphuong/e46ecb82ddf9a0f1590331285e949f21 to your computer and use it in GitHub Desktop.
Save tuphamphuong/e46ecb82ddf9a0f1590331285e949f21 to your computer and use it in GitHub Desktop.
Get current working dir in Java 7+ one line
import java.nio.file.Paths;
Paths.get(".").toAbsolutePath().normalize().toString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment