Learn to write a server by java