Update CmdHat.java