title: Java recursive method set index of array to +1 and after call -1
body: <p>i have a question.How i can change a index of array in method to +1 on first call and after the first call -1 again in a recursive method? 
  For example i need the index of Array on first call 12, after second call 13 and next call 12 again.</p>