Hi,
I will provide you the Java application code with
how to compile and run them in a proper documentation.
You could then extract algorithm, pseudocode and draw flowchart.
If you want, I can also describe the algorithm and write you pseudocode.
Let me know, how urgently you need the code.
Thanks,
Ant