Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
354 B
1
Indexable
Never
import java.text.DecimalFormat;
public class Main{
    static String formatNum(int s){
        // tùy chỉnh định dạng
        DecimalFormat dcf = new DecimalFormat("###,###.##");
        
        return dcf.format(s);
    }
    public static void main(String[] args) {
        
        System.out.println(formatNum(10000002));
    }
}