Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java Convert a string IPv4 IP address to the equivalent long numeric value.

result += (Integer.parseInt(ipAddressInArray[i]) % 256 * Math.pow(256, power));
Copied!
Source by mkyong.com #
 
PREVIOUS NEXT
Tagged: #java #Convert #string #IP #address #equivalent #long #numeric
ADD COMMENT
Topic
Name
6+1 =