Java – Format Currency

Output:

currency format: $1,234.56 -$1,234.56