title: How do I restrict the range permitted for the int argument of a method
body: <p>Say I have a method:</p>
  
  <pre><code>public void method(int i) {
      this.value =+ i;
  }
  </code></pre>
  
  <p>How can I restrict i to a value greater than x? I understand this can be done outside the method but I would prefer to condition it in the constructor. Would it be something like:</p>
  
  <pre><code>public void method(int i; i &gt; x){...};
  </code></pre>
  
  <p>Sorry for not testing this myself, I came up with it as I wrote my query. </p>