title: Use individual technique in method vs other methods in method
body: <p>Wow, that title sounds confusing. Hopefully this clears it up.
  I have two tasks that I can preform, <code>foo</code> and <code>bar</code>. Currently, I preform them like this:</p>
  
  <pre><code>public void foo() {
    foovar = true;
  }
  public void bar() {
    barvar = true;
  }
  </code></pre>
  
  <p>now I need a method to preform both of these things. As i see it, I have two choices:</p>
  
  <p>1:</p>
  
  <pre><code>public void foobar() {
    foovar = true;
    barvar = true;
  }
  </code></pre>
  
  <p>2:</p>
  
  <pre><code>public void foobar() {
    foo();
    bar();
  }
  </code></pre>
  
  <p>What should I do? In the context of Java, what is more efficient? Other languages?</p>