Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用java对ip地址进行升序排序请详细举例。以下是ip地址
123.4.245.23, 104.244.253.29, 1.198.3.93, 32.183.93.40, 104.30.244.2, 104.244.4.1
用 表示 IP 地址java.net.InetAddress,并编写一个实现类Comparator<InetAddress>
java.net.InetAddress
Comparator<InetAddress>