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;
相关阅读
generic 疑问准备面试的侧重hadoop 2.0要出来了,我看了下架构,感觉很复杂啊如何高效的学习java问个crystal report的问题现在的工作完全不用spring,hibernate,以后跳槽是不是会显得很弱?面试如果遇到方法名大写开头的话,会怎么办?被面how to manage heap in java jvm请教个ec2 + nosql 的问题为什么我这个参数的内容存不下?目测netflix形势一片大好啊决定年底前去考 1Z0-803请教一题java code coverage 现在都用什么VP亲自跑来感谢我国内java程序员的工资水平udacity新课程Introduction to programming in Java请教一段代码,关于hashCode()如何获得经验java http request能做到打开一次多次发送http request吗