Developer community
0 votes
1.2k views
asked by Expert (11.4k points) 14 23 29 | 1.2k views

1 Answer

0 votes
The comma (,) flag adds grouping specifiers.
 
import java.util.Formatter;
public class Main {
  public static void main(String args[]) {
    Formatter fmt = new Formatter();
    fmt.format("%,.2f", 1234567890.34); 
    System.out.println(fmt);
  }
}
 
answered by Advisor (8.4k points) 10 15 18

Related questions

0 votes
1 answer
asked by kelly johnes Advisor (6.3k points) 6 21 33 | 1.3k views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 31 | 12 views
0 votes
1 answer
asked by sara Guru (24.6k points) 29 51 79 | 15.1k views
0 votes
2 answers
asked by felin Advisor (8.4k points) 10 15 18 | 16 views
0 votes
1 answer
asked by john Guru (27.1k points) 33 50 98 | 12 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users