i'm doing a java program, and i have to store two byte arrays to single file and read them back in another class, how can i do that? i know how to do it with one array using FileInputStream, i tried to serialize the data and i thought it works but its not the code as below:
the out put is: the data: Hana the primitive: 3 the key: Hana
but the output should be like this: the data: Hana the primitive: 3 the key: abc
it should read the key=abc!
whats the wrong i did? , i'm new to serialization, and i dont know and i couldnt find out!!! please help
is there a better way or what is the wrong here?