int price = 20000;
NumberFormat korea = NumberFormat.getCurrencyInstance( Locale.KOREA );
NumberFormat us = NumberFormat.getCurrencyInstance( Locale.US );
NumberFormat japan = NumberFormat.getCurrencyInstance( Locale.JAPAN );
NumberFormat uk = NumberFormat.getCurrencyInstance( Locale.UK );
NumberFormat france = NumberFormat.getCurrencyInstance( Locale.FRANCE );
System.out.println(korea.format(price));
System.out.println(us.format(price));
System.out.println(japan.format(price));
System.out.println(uk.format(price));
System.out.println(france.format(price));
자바엔 별 신기한게 다있다!
반응형