Originally Posted by
jorys22
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.String;
i can't figure out why im running into this problem.
The exception message is (at least for me) clear: it states that a String cannot be cast to String[] (the part "[L" is the bytecode-level indication of an array of objects).
Why are you expecting a String[] ? What have you serialized (elsewhere in the code) into the file? If you have serialized
N single String objects, you can't expect to read them as a String[].