When I don't do some things because of the bad consequences, that is prudence. Prudence is necessary for a happy and successful life. Prudence helps keep the stress out of life. Justice is a consistent decision to do what is right towards God and my neighbor. I respect the rights and duties of others.
Justice brings harmony.
Without justice, there is no peace. There are no rights without duties attached. If I wish to exercise my rights, in justice I must also exercise my duties. Fortitude means that I do what is right, in every circumstance. If others tempt me to do wrong, I do not do it.