cmhw: fix a syntax error

Fix an error in java code to make it fully working.