public static final String makeJavaPackage(String path){
  String classNameComponents[]=split(path,"/");
  StringBuilder legalClassNames=new StringBuilder();
  for (int i=0; i < classNameComponents.length; i++) {
    legalClassNames.append(makeJavaIdentifier(classNameComponents[i]));
    if (i < classNameComponents.length - 1) {
      legalClassNames.append('.');
    }
  }
  return legalClassNames.toString();
}

public static final String makeJavaPackage ( String path ) { String classNameComponents [ ] = split ( path , "/" ) ; StringBuilder legalClassNames = new StringBuilder ( ) ; for ( int i = 0 ; i < classNameComponents . length ; i ++ ) { legalClassNames . append ( makeJavaIdentifier ( classNameComponents [ i ] ) ) ; if ( i < classNameComponents . length - 1 ) { legalClassNames . append ( '.' ) ; } } return legalClassNames . toString ( ) ; }
converts the given path to a java package or fully - qualified class name
