Simple java app using sockets