Formats a {@code nxm} matrix in components list format"{{a
00,a
01, ..., a
0m-1},{a
10, a
11, ..., a
1m-1},{...},{ a
n-10, a
n-11, ..., a
n-1m-1}}".
The prefix and suffix "{" and "}", the row prefix and suffix "{" and "}", the row separator "," and the column separator "," can be replaced by any user-defined strings. The number format for components can be configured.
White space is ignored at parse time, even if it is in the prefix, suffix or separator specifications. So even if the default separator does include a space character that is used at format time, both input string "{{1,1,1}}" and " { { 1 , 1 , 1 } } " will be parsed without error and the same matrix will be returned. In the second case, however, the parse position after parsing will be just after the closing curly brace, i.e. just before the trailing space.
Note: the grouping functionality of the used {@link NumberFormat} isdisabled to prevent problems when parsing (e.g. 1,345.34 would be a valid number but conflicts with the default column separator).
@since 3.1