Some practice with Java for network apps