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;
相关阅读
Any IBM X60 or I845-850 chip user here? dual monitor questi (转载)[转帖]如何才算掌握Java(J2SE篇)What do you think of XPath, XQuery, and XSLT?怎么能学成J2EE的全能有关AOL信箱的一个问题,急急急! (转载)OOPLSA的牛人还挺多what does "core java" mean?java questionAxis vs. XFire?Sun要开源Java了What is the difference between web application and web services?ask a spring framework question换个斑竹吧用java画直线的问题What is Apache Harmony?请教问题,怎么确定空行!eclipse下生成的jar file不包含library什么样的Projects, 新手练手最合适?急!请各位帮忙推荐java入门的书SYSDEO tomcat的问题。