2 Replies Latest reply on Dec 11, 2006 6:41 PM by 807607

    varargs versus array as Arrays.asList param

      Arrays.asList is declared thus:
      public static <T> List<T> asList(T... a)
      Why would it be written that way rather than
      public static <T> List<T> asList(T[] a)
      Are they not equivalent? If they are, wouldn't the second be more clear to most consumers of the javadoc?

      Just checking whether there's something I don't understand...