Answers for "delete string begining with char with collectons of strings java"

1

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"));
Posted by: Guest on January-19-2021
0

how to remove all characters before a certain character from a string in java

String s = "the text=text";
String s1 = s.substring(s.indexOf("=")+1);
s1.trim();
Posted by: Guest on April-05-2021

Code answers related to "delete string begining with char with collectons of strings java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language