String 類別包裹在java.lang套件中,所以在使用前不需要以import載入。 ... int indexOf(String str), 在字串中尋找str字串出現的位置,若找不到則傳回-1.
確定! 回上一頁