question: public static String classNamePath ( String className ) { String filename = className . replace ( "." , File . separator ) ; filename = filename . replaceFirst ( "[$][0-9]+" , "" ) ; if ( filename . indexOf ( "$" ) > 0 ) { filename = filename . substring ( 0 , filename . indexOf ( "$" ) ) ; } return "src" + File . separator + filename + ".java" ; }
target:  Returns the relative path for a fully qualified classname. Adds "src/" before the pathname for the class. Strips away internal class names.