m*c
2 楼
It seems to me that the author uses array so frequently that he had to come up
a "generic" method to convert Array to String. Maybe he should start to learn
to use other types of data structure (or even OOP) to solve his problme :-)
【在 p***p 的大作中提到】
: http://www.codeproject.com/useritems/ArrayToString.asp
c*t
3 楼
Not really, this problem is very useful in debugging. Sometimes you
want to dump large matrices, sometimes some data files has unknown dimenions
(such as raw data coming from NetCDF). I have my own multi-dimensional
data output/cloning routines for this kind of purposes.
【在 m**c 的大作中提到】
:
: It seems to me that the author uses array so frequently that he had to come up
: a "generic" method to convert Array to String. Maybe he should start to learn
: to use other types of data structure (or even OOP) to solve his problme :-)
want to dump large matrices, sometimes some data files has unknown dimenions
(such as raw data coming from NetCDF). I have my own multi-dimensional
data output/cloning routines for this kind of purposes.
【在 m**c 的大作中提到】
:
: It seems to me that the author uses array so frequently that he had to come up
: a "generic" method to convert Array to String. Maybe he should start to learn
: to use other types of data structure (or even OOP) to solve his problme :-)
m*c
4 楼
come up
learn
For unknown dimension data, isn't it better to use dynamic dimension data
structure such as List (ordered or not) to store the data instead of static
array structure? Also you can store Lists inside List. To dubug this kind of
data structures, you can simply use/overwrite "toString()" (you can create
your own data structure as the list of List):
... class MyList {
private List _listOfList;
...
public void add (List childList) {
_listOfList.add(childList);
【在 c*****t 的大作中提到】
: Not really, this problem is very useful in debugging. Sometimes you
: want to dump large matrices, sometimes some data files has unknown dimenions
: (such as raw data coming from NetCDF). I have my own multi-dimensional
: data output/cloning routines for this kind of purposes.
c*t
5 楼
Gosh, sometimes it is not what you want to use, it is what you have given.
Also, access with multi-dimensional data with array is fast and simple, as
in rotation matrices. Sometimes, it is nice to have 1 routine to output
whatever array data.
【在 m**c 的大作中提到】
:
: come up
: learn
: For unknown dimension data, isn't it better to use dynamic dimension data
: structure such as List (ordered or not) to store the data instead of static
: array structure? Also you can store Lists inside List. To dubug this kind of
: data structures, you can simply use/overwrite "toString()" (you can create
: your own data structure as the list of List):
: ... class MyList {
: private List _listOfList;
Also, access with multi-dimensional data with array is fast and simple, as
in rotation matrices. Sometimes, it is nice to have 1 routine to output
whatever array data.
【在 m**c 的大作中提到】
:
: come up
: learn
: For unknown dimension data, isn't it better to use dynamic dimension data
: structure such as List (ordered or not) to store the data instead of static
: array structure? Also you can store Lists inside List. To dubug this kind of
: data structures, you can simply use/overwrite "toString()" (you can create
: your own data structure as the list of List):
: ... class MyList {
: private List _listOfList;
相关阅读
Re: rephase the questionRe: DCOM, CORBA, JAVA/RMIHow to Print the encrypted PDF.important notice about the FTP ServerFTP Server offlineRe: How to make a JButton stay pressed? (solution?)[转载] Hehe, 俺们不抢TAR的生意....Java interview questionsRe: 推荐推荐Re: JDBC access Oracle?? & Connection PoolingRe: (I mean in java)Re: Help! Anyone have the experience extracting te Files on the ftp serverRe: weblogic,有网址吗?upload some materialsRe: 关于unix用户帐号SilverStream Application Server 3.1grammy, are you still working on the game projectRe: Expert, help me, please -Java Server Environment set upRe: WIN下JAVA文本编辑器推荐Java question 101-150