title: How to quickly test a Java-method in Eclipse?
body: <p>I have a simple method in My Java-code, e.g.</p>
  
  <pre><code>private int specialAdd (int a, int b) {
    if(a &lt; 100) {
      return 100 * a + b;
    } else {
      return a + b;
    }
  }
  </code></pre>
  
  <p>Is there a way to "run/debug selected code" with given parameter values in eclipse? I'd really like to run only this method and view the result for a couple a values for <code>a</code> and <code>b</code>.</p>