title: When you need pass by reference in Java to assign values to multiple parameters, how do you do it?
body: <p>In order to refactor some methods into smaller ones, I need pass by reference, since I can only have one return type. I could create a different return or parameter type whenever I need to do this, but then I'd end up with a bunch of bloated, seemingly unnecessary classes.</p>
  
  <p>What is the best alternative here, besides redesigning the program, which can't be done?</p>
  
  <p>edit: some of it CAN be redesigned, and that's what I am doing, but, for example, at one point it is finding the minimum and second minimum values in a huge collection and then manipulating them. I wanted to split that into 2 methods - one finds, another manipulates - but it seems highly unlikely I'll be able to do this cleanly.</p>