java compare two boolean variables