title: What does "void" mean as the return type of a method?
body: <p>I'm confused about "void",
  as it pertains to methods. </p>
  
  <p>I don't know what the distinction between two methods is when one has "void" and another doesn't.</p>
  
  <p>For example, if I do:</p>
  
  <pre><code>Public meth (int amount)
  {
  
      amount = initial * interest;
      return amount;
  
  }
  </code></pre>
  
  <p>( not sure if it was right, or even valid, to take the name "amount" and name it the same thing as my formal parameter, but what makes sense here is that you're performing a calculation and returning the result)</p>
  
  <p>Then, if I did something like:</p>
  
  <pre><code>Public void Testing (int array[])
  {
  
      //code that would modify the internals of an array
  
  }
  </code></pre>
  
  <p>Would the second one have no "return" because it's more of a general method, that can be applied to any integer array, while the first one is about doing work on specific variables?</p>
  
  <p>Would also appreciate one or two more examples of when I would or wouldn't be using "void" and "return".</p>
  
  <p>One other thing that seems to confuse me is calling methods.  </p>
  
  <p>I know sometimes I'll do something like, for example, using the Testing method above,</p>
  
  <pre><code>Testing(ArrayName);
  </code></pre>
  
  <p>Other times, it will be like:</p>
  
  <pre><code>NameOfWhateverImApplyingMethodTo.MethodName();
  </code></pre>
  
  <p>And then there are times when things will be done properly by:</p>
  
  <pre><code>Thing1.MethodName(Thing2);
  </code></pre>
  
  <p>Which circumstances would I switch the syntax for method calls like this?</p>