Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to cut a certion part from a string in java

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));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #cut #certion #part #string #java
ADD COMMENT
Topic
Name
2+9 =