How could one populate a 2d array from a text file using split?
String proxies[][] = {{"127.0.0.1","80"}, {"127.0.0.1","443"}, {"127.0.0.1","3306"}};
In my text file I have data with a ip:port on each line:
127.0.0.1:80
127.0.0.1.443
127.0.0.1.3306
I could populate a 1d array using split like this:
proxies = everyLine.split("\\n");
How would I insert the ip:port data into a 2d array?