This brings about a certain calmness of mind that can help prevent anger from arising in the first place. And then when a situation does arise that makes you angry, you should directly confront your anger and analyze it. Investigate what factors have given rise to that particular instance of anger or hatred.

