ycl-common/src/main/java/com/ycl/utils/StringUtils.java
@@ -1,5 +1,8 @@ package com.ycl.utils; import java.math.BigDecimal; import java.text.DecimalFormat; public class StringUtils { /** @@ -48,6 +51,7 @@ * hello_world=>helloWorld * HELLO_WORLD=>helloWorld * Hello_World=>helloWorld * * @param content * @return */ @@ -64,6 +68,7 @@ * hello_world=>HelloWorld * HELLO_WORLD=>HelloWorld * Hello_World=>HelloWorld * * @param content * @return */ @@ -74,5 +79,7 @@ .toString(); } public static String doubleTwo(Double value) { return String.format("%.2f", value); } }