手机号中间4位做隐藏 /** * 处理手机号 * @param cell * @return String */ public static String hideCell(String cell) { if (cell != null && cell.length() == 11) { cell = cell.substring(0,3) + "****" + cell.substring(7,11); } return cell; }