Java String類. indexOf() 方法有以下四種形式:. public int indexOf(int ch):返回指定字符在字符串中第一次出現處的索引,如果此字符串中沒有這樣的字符,則返回-1。
確定! 回上一頁