Params: ch – a character (Unicode code point). //유니코드
Returns: the index of the first occurrence of the character
in the character sequence represented by this object,
or -1 if the character does not occur.
파라미터 : ch - 문자
리턴값 : 객체에 해당하는 문자열에 첫번째로 존재하는 문자의 인덱스 또는 해당하는 문자가 없으면 -1을 리턴
public int indexOf(int ch) {
return indexOf(ch, 0);
}
'java > method 정리' 카테고리의 다른 글
isAlphabetic() (0) | 2022.09.28 |
---|---|
valueOf() (0) | 2022.09.27 |
toCharArray() (0) | 2022.09.27 |
charAt() (0) | 2022.09.27 |
댓글