자바 알고리즘 및 문법 학습

마동찬·2023년 4월 11일
0

contains()

boolean contains(CharSequence s)
str.contains()

startWith(str),endWith(str)

boolean startWith(String)

String str = "Java programmers";
str.startWith("J");   //true
str.endWith("s");  //false

isEmpty()

문자열의 길이가 0인경우에 true 리턴

isBlank()

문자열이 비어있거나 공백으로만 이루어져있으면 true리턴

profile
새내기개발자 성장기록

0개의 댓글