[JAVA] 화폐단위 숫자형을 문자형으로 변환
import java.text.DecimalFormat; import java.util.ArrayList; import java.util.List; public class Test{ public String rtn1(long d, int b) { String c = "##,####"; if (b != 0) { c = c += ","; } for (int i = 0; i < b; i++) { c += "#"; } DecimalFormat df = new DecimalFormat(c); String dfVal = df.format(d); return dfVal; } public void rtn2(String r) { String[] arr = r.split(","); StringBuilder sb = new..