Original Post
Hi.. I've just started writing a small multiplayer game.. Right now i'm having a problem converting my CPLayer data to a simple string. public class CPlayer { int score; int x; int y; } CPLayer Player; I want to be able to "convert" player to a string, containing the bytes. eg: String string=Player; and then the string would hold the "raw" data of the player. But how do i do this? The reason is I want to send the string using: out.println(string); recieve the string, and convert it to CPlayer again. but how ? Thanks for the help...