Does anyone know a good tutorial on parsing math equations? I would use google, but I don't know what to search.

Look for expression parsers.

There's a nice example in the book "the art of Java" by Herbert Schildt and James Holmes. Nice book to read anyway with some rather interesting examples of what you can do with Java.