string.replace()
文字列内のすべてのアルファベットを置き換えるために使用できるかどうか疑問に思っていますか?
String sentence = "hello world! 722"
String str = sentence.replace("what to put here", "@");
//now str should be "@@@@@ @@@@@! 722"
つまり、アルファベットをどのように表現すればよいのでしょうか?
長すぎない限り、代替案も歓迎します。