java/method 정리
indexOf()
일상코더
2022. 9. 27. 23:09
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);
}