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

Coderanch | Ashish Dutt | 4 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

    How to copy (the contents of) ArrayList to a String array[]? (Beginning Java forum at Coderanch)

    coderanch.com | 9 months ago
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
  2. 0

    How to copy (the contents of) ArrayList to a String array[]?

    Coderanch | 4 years ago | Ashish Dutt
    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 WordFinder.FrequentlyOccuringWords()
    2. Unknown
      WordFinder.main
      1. WordFinder.FrequentlyOccuringWords(WordFinder.java:90)
      2. WordFinder.writeMatchWordToFile(WordFinder.java:84)
      3. WordFinder.checkWordInFile(WordFinder.java:59)
      4. WordFinder.main(WordFinder.java:135)
      4 frames