Some java code about a world