본문 바로가기
수업시간 JAVA/이론

trim / toLowerCase/ toUpperCase/ replace

by SEOKIHOUSE 2023. 4. 5.

1)trim (공백제거) ->좌우공백 제거해줌


2)toLowerCase - 모두 소문자로

3)toUpperCase - 모두 대문자


4)replace(바꿀항목, 바꿀내용) 

 


 

'수업시간 JAVA > 이론' 카테고리의 다른 글

Interface  (0) 2023.04.09
상속  (0) 2023.04.08
substring/indexof/ lastindexof /split 만들어보기  (0) 2023.04.08
싱글패턴/charAt문제  (0) 2023.04.08
charAt()/indexof() /lastindexof() /concat/ substring()/ split/contains  (0) 2023.04.04