The ParameterList() class in com.microfocus.cobol.lang helps with coding parameters being passed between Java and COBOL.
The general mechanism for using ParameterList() is:
RuntimeSystem.cobcall("myProgram", new ParameterList() .add(myOneInt,RuntimeSystem.BY_VALUE) .add(mySecondParameter,RuntimeSystem.BY_REFERENCE) .add(99) // 99 by reference );
Where the parameters are: