有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (1) 个答案

  1. # 1 楼答案

    在字符串上使用String.replaceFirst()

    String input = "[=Ind(\"Blr-ind\",\"Company\")]";
    input = input.replaceFirst("=", "");
    
    System.out.println(input);
    

    输出:

    [Ind("Blr-ind","Company")]