I'm trying to make an array of integers from an IP string in java. For example:
String ip = "192.168.0.1";
int[] ipArray = new int[4];
int[0] = 192; int[1] = 168; int[2] = 0; int[3] = 1;
any idea how can I do this?
I know the parseInt tool, but how can I work with the "." ?
Sorry the noob question, I'm still a beginner.