public class Day1_ClassTest2 {
public static void main(String[] args) throws IOException {
FileOutputStream fos = new FileOutputStream("黎玉梅.txt");
String s = "61.54.231.245";
String s1 = "61.54.231.9";
String s2 = "61.54.231.246";
String s3 = "61.54.231.48";
String s4 = "61.53.231.249";
TreeSet<String> t = new TreeSet<>(new Comparator<String>() {
public int compare(String st, String st1) {
String[] str = st.split("\\.");
String[] str1 = st1.split("\\.");
int c = 0;
for (int i = 0; i < str.length; i++) {
c = Integer.parseInt(str[i]) - Integer.parseInt(str1[i]);
if (c == 0 && i != str1.length - 1) {
continue;
} else {
break;
}