2 "We are happy" 中的空格用%20替代。
答案: str = str.replace(" ","%20");
答案:String[] s=str.split(".mp3"); strend = s[0]+".mp3";