Refactor java/weather
Add the test code in java/weather