public static boolean isBoolean(String desc){
  return desc.endsWith("Z");
}

public static boolean isBoolean ( String desc ) { return desc . endsWith ( "Z" ) ; }
tells whether a given type is a boolean
