How to access input/output parameters in Java