title: How to use a recursive method that has a return type void in java?
body: <p>So I understand how to use a recursive method that has some other return type other than void. Typically I would call the same method again in the same method( inside the recursive case), while decremented or increment some value in the call to reach the base case. Then at some point the base case is reached and the problem is solved, so it starts returning the value from every call. Along those lines.</p>
  
  <p><strong>BUT</strong>
  <br>
  What if the method has the return type void, so you can't call the method as it won't/can't return anything? I'm trying to write a sentence backwards, which I've solved both with a for loop and a resucrive method that can return a string value, but I'm not sure how to approach it if it's void which is what the assignment is asking for.<br>
  Edit: I should also mention the sentence can only be passed in the parameter</p>
  
  <p><strong>Thank you everyone for the information and the help!</strong></p>