title: Java limit length integer
body: <p>I am new in Java and I need some help. </p>
  
  <p>Can someone tell me how I can set limit length to integer = 6 in this code.</p>
  
  <p>For example </p>
  
  <pre><code>id = 124973 
  
  public void setId(int id) {
      this.id = id;
  }
  </code></pre>