| Author |
Can't Figure out why I get the cast error in this program at line 39
|
joe vasher
Ranch Hand
Joined: Nov 06, 2009
Posts: 37
|
|
I keep getting this error. I don't understand why this is happening? I included the error with my println statements which work right up to the read...
ANY help would be appreciate. I only have a few hairs left..
run:
Writing to file !0
Writing to file !1
Writing to file !2
here!
Packet created!
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to com.pbuddie.Packet
at com.pbuddie.IOHandler.main(IOHandler.java:39)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
|
 |
joe vasher
Ranch Hand
Joined: Nov 06, 2009
Posts: 37
|
|
|
Man it wasn't 3 secs after I posted this that I relized i didn't right the Packet file to disk..
|
 |
 |
|
|
subject: Can't Figure out why I get the cast error in this program at line 39
|
|
|