문자열 핸들링 함수
- 문자열을 핸들링 할 함수와 사용법 정리 - length(), toUpperCase(), toLowerCase(), contains(), indexOf(), lastIndexOf(), substring(), startWith(), endWith(), replace(), , trim(), concat(), equals(), equalsIgnoreCase() 1.문자열 길이 확인: length() String s = "Hello world!"; System.out.println(s.length()); 2.대소문자 변환: toUpperCase(), toLowerCase() String s = "Hello World!" // 문자열을 전부 대문자로 변환 System.out.println(s.toUpperCas..
2023. 11. 29.