对new DecimalFormat("#,###.00")中的#,###.00不理解查看JDK文档
解释如下DecimalFormat patterns have the following syntax: 
Pattern:
PositivePattern
PositivePattern ; NegativePattern
PositivePattern:
Prefixopt Number Suffixopt
NegativePattern:
Prefixopt Number Suffixopt
Prefix:
any Unicode characters except \uFFFE, \uFFFF, and special characters
Suffix:
any Unicode characters except \uFFFE, \uFFFF, and special characters
Number:
Integer Exponentopt
Integer . Fraction Exponentopt
Integer:
MinimumInteger
#
# Integer
# , Integer
MinimumInteger:
0
0 MinimumInteger
0 , MinimumInteger
Fraction:
MinimumFractionopt OptionalFractionopt
MinimumFraction:
0 MinimumFractionopt
OptionalFraction:
# OptionalFractionopt
Exponent:
E MinimumExponent
MinimumExponent:
0 MinimumExponentopt
(上面的应该是对pattern的语法解释。)
A DecimalFormat pattern contains a positive and negative subpattern, for example, "#,##0.00;(#,##0.00)". Each subpattern has a prefix, numeric part, and suffix. The negative subpattern is optional; if absent, then the positive subpattern prefixed with the localized minus sign ('-' in most locales) is used as the negative subpattern. That is, "0.00" alone is equivalent to "0.00;-0.00". 
(对下面的这段解释不理解,它说的是什么意思?怎么会得出这样的结果)
If there is an explicit negative subpattern, it serves only to specify the negative prefix and suffix; the number of digits, minimal digits, and other characteristics are all the same as the positive pattern. That means that "#,##0.0#;(#)" produces precisely the same behavior as "#,##0.0#;(#,##0.0#)". 问题2对其中的0,#,“,”,“.”的解释有些不理解,0与#,“,”与“.”有什么区别呢
0与#区别是,0可以表示任意整数
#表示除0外的整数吗?“,”的解释  grouping separator是什么意思??
JDK文档表格如下:
Symbol Location Localized? Meaning 
0    Number Yes     Digit 
#    Number Yes     Digit, zero shows as absent 
.    Number Yes    Decimal separator or monetary decimal separator 
,    Number Yes    Grouping separator