title: Searching for a digit and delete it in my int variable
body: <p>I want to search a digit in my int variable and delete it.</p>
  
  <p>Here is little part of the code (not finished, because i'm still on the implementation). I noticed that there are many use cases. So do you know an easier way to delete the digit?</p>
  
  <pre><code>public int getStringtoIntForEthType(int OxAB){
          String myInt = Integer.toString(OxAB);
          if(Integer.toString(OxAB).contains("x")){
              myInt = myInt.substring(2);
          }
          StringBuilder myIntBuilder = new StringBuilder(myInt);
  
          for(int a = 0; a&lt;=myInt.length();a++){
              if(a-1 &lt; 0 &amp;&amp; myIntBuilder.charAt(0)!=0 &amp;&amp; myIntBuilder.charAt(a)==0){
  
              }
          }
  
          return Integer.parseInt(myIntBuilder.toString());
      }
  </code></pre>