📜  如何在java代码示例中从字符串中剪切一个证书部分

📅  最后修改于: 2022-03-11 14:52:24.403000             🧑  作者: Mango

代码示例3
String str = "manchester united (with nice players)";
System.out.println(str.replace("(with nice players)", ""));
int index = str.indexOf("(");
System.out.println(str.substring(0, index));