android - Deleting a word in a String/String Array -



android - Deleting a word in a String/String Array -

so if adding in string, can add together them via += method(the 1 know , using atm). how can delete word in string/string array?

example: have string

string="monday,tuesday,wednesday"

how create

string="monday,wednesday"

any help please?

you utilize replace method.

string sentence = "monday,tuesday,wednesday"; string replaced = sentence.replace("tuesday,", "");

android

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -