반응형 콤마1 [JAVA] 금액 단위 콤마 구분하기 자바에서 금액 단위 콤마 (,) 구분하기 public static String formatPrice(String amt){ DecimalFormat df = new DecimalFormat("###,###,###,###"); return df.format(Long.parseLong(amt)); } 2023. 3. 18. 이전 1 다음 반응형