A function (well, a method in your case) can pass parameters to another function by invoking it.
If this is not your scenario (e.g. you are calling sequentially both methods) then you may:
- Expicitly pass the same parameters to both methods
or
- Wrap the parameters in a class, make the first method return a reference an instance of such class, eventually use such reference as second method parameter.
or
- Make the parameters available as members of the class (the same class of both methods)
or