I am attempting to create a genetics calculator in Java, and need to know the formula for genetics probability without using punnet squares. For example:

An albino bred to a hypo het albino:

25% het albino
25% hypo het albino
25% albino
25% hypo albino

Any help would be greatly appreciated.