private char[] convertToArrayType(char[] typeName,int arrayDim){
  int length=typeName.length;
  char[] arrayType=new char[length + arrayDim * 2];
  System.arraycopy(typeName,0,arrayType,0,length);
  for (int i=0; i < arrayDim; i++) {
    arrayType[length + (i * 2)]='[';
    arrayType[length + (i * 2) + 1]=']';
  }
  return arrayType;
}

private char [ ] convertToArrayType ( char [ ] typeName , int arrayDim ) { int length = typeName . length ; char [ ] arrayType = new char [ length + arrayDim * 2 ] ; System . arraycopy ( typeName , 0 , arrayType , 0 , length ) ; for ( int i = 0 ; i < arrayDim ; i ++ ) { arrayType [ length + ( i * 2 ) ] = '[' ; arrayType [ length + ( i * 2 ) + 1 ] = ']' ; } return arrayType ; }
for example : - int foo ( string [ ] ) is ( [ ljava / lang / string ; ) i = > java . lang . string [ ] in a char [ ] [ ] - void foo ( int ) is ( i ) v = = > int
