Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

delete ending part of the string java

//To delete starting from "opened"
String str ="13 opened by someone";

String result = str.substring(0,str.lastIndexOf(" opened"));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #part #string #java
ADD COMMENT
Topic
Name
2+5 =