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

Coderanch | praveenkumar kumarpraveen | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Reason for ClassCastException

    Coderanch | 10 years ago | praveenkumar kumarpraveen
    java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

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

      at TestClassCast.main()
    2. Unknown
      TestClassCast.main
      1. TestClassCast.main(TestClassCast.java:18)
      1 frame