Hapus teks yang dipilih dari nilai string android java

//java,remove selected value from string value,2021/09/23

String strValue="Text what you want remove hello world";
strValue.replace("Text what you want remove","text to replace");
System.out.println(strValue);
	//after replace strValue = "text to replace hello world"
RIPCode