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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -