question: protected void loadPaths ( ArrayList < PathImpl > paths , PathImpl dir ) { try { for ( String fileName : dir . list ( ) ) { PathImpl path = dir . lookup ( fileName ) ; if ( fileName . endsWith ( ".jar" ) || fileName . endsWith ( ".zip" ) ) { paths . add ( path ) ; } else if ( path . isDirectory ( ) ) { loadPaths ( paths , path ) ; } } } catch ( IOException e ) { e . printStackTrace ( ) ; } }
target:  Find all the jars in this directory and add them to jarList.