Learning for Java and making a server