⭐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 |