Given a list of IP address, how do you find min, max ?
- by zeroin23
In Java, i have an arrayList of ip address. how do i find the min and max ?
I have used the Collection.min() but it doesnt work given a case like :
192.168.0.1 <--min
192.168.0.250
192.168.0.9 <--max
how do i return
192.168.0.1 <--min
192.168.0.250 <--max
instead?