Answers for "java netbens getPrice Currency Format"

1

java format money

double money = 100.1;
NumberFormat formatter = NumberFormat.getCurrencyInstance();
String moneyString = formatter.format(money);
System.out.println(moneyString);
Posted by: Guest on September-02-2020

Browse Popular Code Answers by Language