How to convert this pseudo code into JAVA

Printable View