Help with algorithm in java

Printable View