티스토리 뷰
728x90
fun camelToSnake(camel: String): String {
if (StringUtils.isEmpty(camel)) {
return ""
}
var result = camel[0].lowercase()
for (i in 1 until camel.length) {
val t = camel[i]
if (t.isUpperCase()) {
result += "_"
}
result += t.lowercase()
}
return result
}
https://www.geeksforgeeks.org/convert-camel-case-string-to-snake-case-in-java/
Convert camel case string to snake case in Java - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
728x90
'공부' 카테고리의 다른 글
[kotlin] collection.forEachIndexed { index, element -> (0) | 2022.09.24 |
---|---|
[spark] sql repartition (by query hint) `SELECT /*+ COALESCE(1) */` is better than `SELECT /*+ REPARTITION(1) */` (0) | 2022.09.22 |
[Algorithm] Binary Search Tree Check (2) | 2022.09.19 |
Deprecating the "X-" Prefix and Similar Constructs in Application Protocols (1) | 2022.09.17 |
[python] for i in range(a, b, c) (0) | 2022.09.16 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Kluge
- 인스타그램
- 유투브
- 팔로워 수 세기
- Bot
- 모델 Y 레퍼럴
- 할인
- follower
- 테슬라 리퍼럴 코드 생성
- 테슬라 리퍼럴 코드 혜택
- 테슬라 레퍼럴 코드 확인
- 개리마커스
- 레퍼럴
- 테슬라
- COUNT
- 김달
- 모델y
- wlw
- 테슬라 추천
- 테슬라 리퍼럴 코드
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 레퍼럴 적용 확인
- 연애학개론
- 어떻게 능력을 보여줄 것인가?
- 테슬라 레퍼럴
- 테슬라 크레딧 사용
- 클루지
- 책그림
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함