Light Blue Pointer
본문 바로가기
개발일지

2023-11-22, Today I Learned

by 개발바닥곰발바닥!!! 2023. 11. 22.

⭐Java String 값 비교

compareTo

if string1 > string2, it returns positive number
if string1 < string2, it returns negative number
if string1 == string2, it returns 0

str1.compareTo(str3);

 

⭐Java max

Math.max(2,5);

Math.max임

'개발일지' 카테고리의 다른 글

2023-11-28, Today I Learned  (0) 2023.11.28
2023-11-23, Today I Learned  (0) 2023.11.24
2023-11-21, Today I Leanred  (0) 2023.11.21
2023-11-20, Today I Learned  (0) 2023.11.20
2023-11-17, Today I Learned  (0) 2023.11.17