public static boolean eqParamTypes(String desc1,String desc2){
  if (desc1.charAt(0) != '(')   return false;
  for (int i=0; true; ++i) {
    char c=desc1.charAt(i);
    if (c != desc2.charAt(i))     return false;
    if (c == ')')     return true;
  }
}

public static boolean eqParamTypes ( String desc1 , String desc2 ) { if ( desc1 . charAt ( 0 ) != '(' ) return false ; for ( int i = 0 ; true ; ++ i ) { char c = desc1 . charAt ( i ) ; if ( c != desc2 . charAt ( i ) ) return false ; if ( c == ')' ) return true ; } }
returns true if the list of the parameter types of desc1 is equal to that of desc2 . for example , " ( ii ) v " and " ( ii ) i " are equal .
