1. 程式人生 > >JAVA中字符串的startWith什麽意思

JAVA中字符串的startWith什麽意思

意思 判斷字符串 with rdquo 判斷 line abcdefg font true

判斷字符串是否以某個子字符串開頭。 比如字符串“abcdefg”.startWith("abc") 判斷結果是true,因為它是以 abc 開頭的。

JAVA中字符串的startWith什麽意思