Java中怎么判断座机号输入对不对?

2025-04-02 06:32:49
推荐回答(1个)
回答1:

String phone = "010-1234567";
String[] result = phone.split("-");
String prev = result[0];
String next = result[1];