title: Java - How to reference the body and inputed parameter inside a method?
body: <p>Apologies if the terminology is not correct. Let's say I have a method called "merge". I have an object called "a" and another called "b". If I choose to call this method to merge "a" and "b", I believe I should do something like a.merge(b). My question is, how would I reference both "a" and "b" values inside of a method?</p>
  
  <p>For example:</p>
  
  <pre><code>Sequence a = ...;
  Sequence b = ...;
  Sequence c = a.merge(b);
  public Sequence merge(Sequence other){
  ...
  }
  </code></pre>
  
  <p>Inside of the merge method, what would be the proper way to refer to the the body (a) and argument (b)? Very new to java, therefore apologies on using the wrong terminology. Any resource I could reference for this problem would also be helpful.</p>