How do I cast variable types in Java?
Posted on 1998-07-31
Hi guys!, I have a class with only variables, and I need to read from a Socket with the class DataInputStream into my class, I don't want to copy var per var, is there any way to cast from a byte to class type some bytes?
Data.read(t, 0,sizeof(t)); <-------- How can I do this? read info into my data type, just cast?,