Created
November 21, 2016 07:54
-
-
Save tuphamphuong/e46ecb82ddf9a0f1590331285e949f21 to your computer and use it in GitHub Desktop.
Get current working dir in Java 7+ one line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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