Ericsson Interview Question

Wrtier code in Java, to write the Smallest and Second Smallest integer from Array