Notice
Recent Posts
Recent Comments
Link
«   2024/10   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

엘라의 개발 스케치 Note

[TIL] 내일배움캠프 36일차(23.06.19.) - String 대소문자 바꾸기 toUpperCase, toLowerCase, join 본문

내일배움캠프/TIL

[TIL] 내일배움캠프 36일차(23.06.19.) - String 대소문자 바꾸기 toUpperCase, toLowerCase, join

엘라랑이 2023. 6. 20. 02:31

To-do

  • 스프링 숙련 강의 수강
  • 알고리즘 공부 및 그룹 스터디
  • 보충 강의 수강

 

TIL

  • Bean, 인증과 인가(쿠키와 세션, JWT)
  • toUpperCase: String 대문자로 바꾸기
String s = "hello world"
System.out.println(s.toUpperCase());

// 출력 
HELLO WORLD
  • toLowerCase: String 소문자로 바꾸기
String s = "HELLO WORLD"
System.out.println(s.toLowerCase());

// 출력 
hello world
  •  join("추가할 문자", 대상 list/Array): String 이어 붙이기. 추가할 문자를 공백으로 넣으면 바로 이어서 붙여짐
String[] foods = new String[] { "치킨", "피자", "햄버거", "파스타" };
System.out.println(String.join(" + ", foods));

// 출력
치킨 + 피자 + 햄버거 + 파스타
  • 코딩테스트 연습 문제 풀이시 boolean 타입의 flag, 삼항연산자 활용하기!

 

Next...

  • 스프링 숙련 강의 수강
  • 자바 문법 종합반 복습
  • 자바의 정석 공부
  • 알고리즘 공부
 

 

Comments