I am taking data management this year, and we are currently learning about matrixes. I know they are used to encrypt things, and the teacher even used it as an example. my problem is the following. We are only learning how to encrypt and decrypt using a 2x2 matrix. That is not a very secure encryption. I am wondering how I would find the inverse of a matrix that is more then 2x2. I realize this is more of a math question, but it is closely related to computers in my example sooo... Thanks for any help.

You could use a math package like javax.vecmath, which has several matrix classes with invert() methods or you can do the math yourself. You can find the math easily on the net.