title: Remove leading zero in Java
body: <pre><code>public static String removeLeadingZeroes(String value):
  </code></pre>
  
  <p>Given a valid, non-empty input, the method should return the input with all leading zeroes removed. Thus, if the input is “0003605”, the method should return “3605”. As a special case, when the input contains only zeroes (such as “000” or “0000000”), the method should return “0”</p>
  
  <pre><code>public class NumberSystemService {
  /**
   * 
   * Precondition: value is purely numeric
   * @param value
   * @return the value with leading zeroes removed.
   * Should return "0" for input being "" or containing all zeroes
   */
  public static String removeLeadingZeroes(String value) {
       while (value.indexOf("0")==0)
           value = value.substring(1);
            return value;
  }
  </code></pre>
  
  <p>I don't know how to write codes for a string "0000".</p>