title: How to limit my String to be between 001 and the max string to 999 implementing conditions once it is read by by user
body: <blockquote>
    <p>//need to set a condition for a read String by user to be between
    001 and 999
        String str="000";
        int i=Integer.parseInt(str);
        if(i&lt;1||i>999)
          System.out.print("error");</p>
  </blockquote>