Skip to content

Commit a3b6462

Browse files
committed
小写驼峰转换为大写下划线
1 parent 72e123a commit a3b6462

2 files changed

Lines changed: 298 additions & 131 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.example.string;
2+
3+
import com.google.common.base.CaseFormat;
4+
5+
6+
public class lowerCamelToUpperUnderscore {
7+
8+
public static void main(String[] args) {
9+
System.out.println(CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, "lowerCamel"));
10+
}
11+
}

0 commit comments

Comments
 (0)