-->
当前位置:首页 > 题库 > 正文内容

单选题:要去除字符串" i t c a s t "中的所有空格,用以下哪种方法更合适()

Luz4年前 (2021-12-13)题库1230
要去除字符串" i t c a s t "中的所有空格,用以下哪种方法更合适()



A.String substring(int beginIndex)
B.String substring(int beginIndex, int endIndex)
C.String replace(CharSequence oldstr, CharSequence newstr)
D.String trim()


答案:C

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。