Press enter to see results or esc to cancel.

Get the Current Working Directory in Java

How do you get the current working directory in Java? There are a few different ways of getting the the current working directory. System Property user.dir The System class contains properties that describes the configuration of the current working environment. The property that returns the current working directory is “user.dir”. String userDir = System.getProperty(“user.dir”);System.out.println(“The current …

Continue reading

Don’t be a Tool

Developers often associate their identity with a programming language or a framework. I’m a Java developer, I’m a JavaScript developer, I’m a React developer, or I’m a back-end developer. It’s an understandable perspective, however, if you asked a carpenter what he does for a living, and he answered, “I’m a user of hammers,” it wouldn’t …

Continue reading