question: public static void update ( File directory ) { if ( directory != null && directory . exists ( ) ) { Properties sysProps = new Properties ( System . getProperties ( ) ) ; sysProps . setProperty ( "user.dir" , directory . getAbsolutePath ( ) ) ; System . setProperties ( sysProps ) ; } }
target:  Update CurrentSirectory to be the supplied directory.