If you aren't happy to try to transform the Java into B4A code, which should be pretty straightforward as I assume it is purely algorithmic, then post the Java and I'll see if it's best to bung it in a library or transform it to a B4A code module.I have a stats library, but it is in Java