java.lang.ClassCastException

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

Solutions on the web19460

  • via Coderanch by praveenkumar kumarpraveen, 11 months ago
    [Ljava.lang.String; cannot be cast to java.lang.String
  • [Ljava.lang.String; cannot be cast to java.lang.String
  • via Google Groups by Arnaud, 6 months ago
    java.lang.String cannot be cast to [Ljava.lang.String;
  • Stack trace

    • java.lang.ClassCastException: [Ljava.lang.String; cannot be cast to java.lang.String at TestClassCast.main(TestClassCast.java:18)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.