关于StringBuilder

请问既然说StringBuilder定义的字符串是变量那么请问应该如何修改?

StringBuilder one=new StringBuilder("wang");//创建了一个StringBuilder类型的字符串wang。
//请问这里定义的one是一个变量字符串。我应该如何去修改他的值?
StringBuilder one=new StringBuilder("zhang");;//这是编译器会报错 复制本地变量的one

请问大家我既然定义了StringBuilder类型 肯定是要做很多次修改字符串的

那么请问应该如何去具体修改?

hy_wang
浏览 2005回答 0
0回答

蒹葭苍苍白露为霜

后面的视频里有提到,有专门的方法去修改

慕的地8582982

JWZMSIXGXOKQTAHKKGJZJSPVXSBUUVBVPSWJUXKFOATGDSSSUEHNUHTHXTQARLOTDNNUSRHYRYLQDSIMWQDTANUKVOLBFSCCZLKVLINQKYFSCCNDZNQRTMAGAKUYQJJBUHOVYHRTCQQKXXHKKTULOOYLMPVKEOZNQKXEYTNNNHVSCWWWCSCVPZIREVLSSFLTROSZZYETQEYBEYLNHLRYDDDNVFFNOXNFNXABFPFWMCJWMEHKBZISOWZWZCRIBFIIGAITQDXUGCXDDYPSCMBYBHIVPGWWXAAPSJJJMDOMZXEBNKKSSFZTSBBCPJMJSJJKNLWWJQLYIOQMSSEFWTWDTNDXMMSJOKKUQAGNWQXJFCWBERPCORWMNGBYYOWWNLOISGAEYEZJKCFLVWQEKHYTNROSQNBYWAARDKRXHBSMJTXBVCSCFMUBSPRIOYEUYSLIVCZXMZPDBGKHELPSIIICVPZGJGXRCBPQLZPWZVYFPIPOUBVZFZZSZJVISINMDOZQFJJJTHHNVWVVPZWPMFPQHAARURBUSICZZDQDEBHUARIFFMZGWTHRBEJKXTKUMIPXGEBKQANRAHHEOBWLVCAZTARMUYVNOOOKVGXXKAKHMMVWZLOVUVOHLHRFZDJKAEQMFTCHLDMDTCMIICTJMMTCLLBVOYMZKADBBCMUUUYIFYFJVPPZHKDUEWEUBXLLSFNTYXAAUTDEKLELUBJSWTQDUHCCYPIPGZMNNEKOEIPADQHQLYMMDATNTXUZYLVPWNHWTTUAAJCTLEEFYVZFQRESIFWGEDSIMWQGKNUENJKVMZTGQTSYFPZZQBYYQPPJTXXOLMMFABBCFMKCVJUEIOZSZZQRHRBVSYSWXRUEFNOOOYVPSPXA
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java