java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

Coderanch | Stevens Miller | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ArrayList.toArray() vs. ArrayList.toArray(T[] a)

    Coderanch | 3 years ago | Stevens Miller
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
  2. 0

    ArrayList.toArray() vs. ArrayList.toArray(T[] a)

    Coderanch | 3 years ago | Stevens Miller
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

      at casts.ArrayTest.main()
    2. casts
      ArrayTest.main
      1. casts.ArrayTest.main(ArrayTest.java:14)
      1 frame