Moving down a level in a directory
<p>is it possible to move down a level in directory in java</p>

<p>for example in command prompt</p>

<p>C:\Users\foo\</p>

<p>i can use cd.. to go to</p>

<p>C:\Users\</p>

<p>is it possible to do this in java, because i am getting a directory using System.getProperty("user.dir"); however that is not the directory i would want to work at, but rather 1 level down the directory.</p>

<p>I have thought of using the Path class method; subpath(i,j) but if the "user.dir" were to be changed to another directory , then the returned subpath would be different.</p>
