Java programme that takes arguments