question: static String toClassName ( String s ) { int i = s . indexOf ( '$' ) ; if ( i > 0 ) s = s . substring ( 0 , i ) ; return s . replace ( "/" , "." ) ; }
target:  Returns the class name for the given class file. In the case of inner classes then the enclosing class is returned in order to keep the rules simple.