public static boolean isArray(String desc){
  return desc.startsWith("[");
}

public static boolean isArray ( String desc ) { return desc . startsWith ( "[" ) ; }
tells whether a given type is an array
