I had to look up Oberon, but I don't think it matters.

Can you show the difference in the math results from the old code to the Java translation and post just the Java code that provides those...