title: Given a string, find out if it satisfies the IPv4 address naming rules (code review) not looking for another solution
body: <p>An IP address is a numerical label assigned to each device (e.g., computer, printer) participating in a computer network that uses the Internet Protocol for communication. There are two versions of the Internet protocol, and thus two versions of addresses. One of them is the IPv4 address.</p>
  
  <p>IPv4 addresses are represented in dot-decimal notation, which consists of four decimal numbers, each ranging from 0 to 255 inclusive, separated by dots, e.g., 172.16.254.1.</p>
  
  <p>For inputString = "172.16.254.1", the output should be
  isIPv4Address(inputString) = true;</p>
  
  <p>For inputString = "172.316.254.1", the output should be
  isIPv4Address(inputString) = false</p>
  
  <p>Here is my solution :</p>
  
  <pre><code>boolean isIPv4Address(String inputString) {
      String splitparts[] = inputString.split("[.]");
      if(splitparts.length != 4){
          return false;
      }
      for(String part : splitparts){
          if(part.isEmpty())
              return false;
  
          if(!part.matches("[0,9]{1,3}"))
              return false;
  
          if(!(Integer.parseInt(part)&gt;=0 &amp;&amp; Integer.parseInt(part)&lt;=255))
              return false;
      }
  
      return true;
  }
  </code></pre>
  
  <p>My solution is returning false in all the case and I can't find out the cause of the error. 
  It would be great if someone reviews my code and explains to me why it's returning only false.</p>