Convert an ip address to its decimal equivalent in Java?
===

Does anyone know the easiest way to convert an ip address to its decimal equivalent in Java?


Eg. I have the following string:

<code>
String ipAddress = "192.168.1.10 "
</code>

And I want to convert it to its decimal equivalent:

<code>
3232235786 
</code>

Many thanks!