code: public static String toClassName(String str) {
  	StringBuilder rtn = new StringBuilder();
  	String[] arr = str.split("[\\\\|//]");
  	for (int i = 0; i < arr.length; i++) {
  	    if (arr[i].length() == 0) continue;
  	    if (rtn.length() != 0) rtn.append('.');
  	    char[] chars = arr[i].toCharArray();
  	    long changes = 0;
  	    for (int y = 0; y < chars.length; y++) {
  		char c = chars[y];
  		if (y == 0 && (c >= '0' && c <= '9')) rtn.append("_" + c);
  		else if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9')) rtn.append(c);
  		else {
  		    rtn.append('_');
  		    changes += (c * (i + 1));
  		}
  	    }
  	    if (changes > 0) rtn.append(changes);
  	}
  	return rtn.toString();
      }
docs: translate a string to a valid classname string
  
  @param str string to translate
  @return translated String