Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Java
java Convert a string IPv4 IP address to the equivalent long numeric value.
studying
Programming language:
Java
2021-05-15 21:43:19
0
Q:
java Convert a string IPv4 IP address to the equivalent long numeric value.
hala
Code:
Java
2021-05-21 13:53:26
result += (Integer.parseInt(ipAddressInArray[i]) % 256 * Math.pow(256, power)); Copied!
0
Tags
string
java
value
add
con
long
Related
binary string to int java
binary to integer in java
binary to int java
java.lang.long cannot be cast to java.lang.integer
New to Communities?
Join the community