a.addAttribute(Subscript, new Boolean(b));
a.addAttribute(Subscript, Boolean.valueOf(b));
  public static void setSubscript(MutableAttributeSet a, boolean b)  {    a.addAttribute(Subscript, new Boolean(b));  } 