美文网首页
字符串拼接

字符串拼接

作者: 飞兔哥 | 来源:发表于2017-05-27 18:26 被阅读16次

    2 "We are happy" 中的空格用%20替代。

        答案:   str = str.replace(" ","%20");

    3:str="http://vbox.hf.openstorage.cn/123.mp3?token=asdasd"; 截取MP3的链接。

      答案:String[] s=str.split(".mp3"); strend = s[0]+".mp3"; 

    相关文章

      网友评论

          本文标题:字符串拼接

          本文链接:https://www.haomeiwen.com/subject/yvgqfxtx.html