code: public String convertArrayClassName(String className, 
                                          int bracketIndex) {
  
          String dimensions = "";
  
          String brackets = className.substring(bracketIndex).trim();
          char[] chars = brackets.toCharArray();
          for (int i = 0; i < chars.length; i++) {
              if (chars[i] == '[') {
                  dimensions = dimensions + '[';
              }
          }
  
          String arrayType = className.substring(0, bracketIndex).trim();
          char prefixChar = 'L';
  
          Class<?> clazz = cPrimativeClasses.get(arrayType);
          if (clazz != null) {
  
              arrayType = "";
  
              if (clazz == boolean.class) {
                  prefixChar = 'Z';
              }        
              else if (clazz == char.class) {
                  prefixChar = 'C';
              }        
              else if (clazz == byte.class) {
                  prefixChar = 'B';
              }        
              else if (clazz == short.class) {
                  prefixChar = 'S';
              }        
              else if (clazz == int.class) {
                  prefixChar = 'I';
              }        
              else if (clazz == float.class) {
                  prefixChar = 'F';
              }        
              else if (clazz == double.class) {
                  prefixChar = 'D';
              }        
              else if (clazz == long.class) {
                  prefixChar = 'J';
              }        
              else if (clazz == void.class) {
                  return null;
              }        
          }
          else {
              arrayType = arrayType + ';';
          }
  
          return dimensions + prefixChar + arrayType;        
      }
docs: Converts the user-friendly array class name to the VM friendly one.
  For example:
  <UL>
  <LI><code>java.lang.String[]</code> becomes
  <code>[Ljava.lang.String;</code>
  <LI><code>int[][]</code> becomes <code>[[I</code>
  <LI><code>byte[]</code> becomes <code>[B</code>
  </UL>
  
  @param className the name of the array class
  @param bracketIndex the index (withing className) of the first '['
  character