Java 替换中文括号小括号,或者英文括号

public static void main(String[] args){
    String hetong="202022732(102)";
    hetong=hetong.replaceAll("\\(","(").replaceAll("\\)",")");
    System.out.print(hetong);
}

猜你喜欢

转载自blog.csdn.net/y_bccl27/article/details/114262757
今日推荐