-
柴可马夫司机
就是返回了数组了,那是数组对象的地址,你遍历并打印返回的值就能看到数组里面的数据了
-
xlbf22
可以利用java.util.Arrays.asList()将数组变成List后再打印例如:String[] arrs = {"A","B","C"};
System.out.println(java.util.Arrays.asList(arrs));
-
_夕晨踏雪
比如我有一个数组a={1,2,3},直接打印a会返回a[0]的地址,即a存放的是第一个元素的地址;如果b=return a的话,会得到跟a一样的地址,想要得到内容,就b[i]。其实本身返回的就是整个数组,只是用地址来找而已。
-
慕瓜641125
forArray.toString(数组【i】)
-
助攻无敌
为什么不试试集合类呢
-
慕田峪6141110
SBYYYILHKIEYKWDOUISLEOTMPWHDPCOVEXGXDRYILBIOMXAEXXXQDJWWNXQLIKAAUUJCEEHNLXLMLOYEBVFGMZFSCRCLNBLOKXQPFRXNNIXHRRRXQMARNTMWTIXGRZLGVPIIZDHGYEBKDKWKTRHORNKTDQFZSMJTSPYFHEOGAUHOQDUZTCEYFFAGZWVQQCPFZFLFXQJIESIYBJFMZXDIGGQWZCVMBHKNWTZVOVGLXXDDCZWQRFMLIXXYUEQYOOSVPMSFYFJJSIRNKVBOYXEPYCMGMPLEFLHDWNOLELYVOUMPCTQGWXEQFUWMMFFFLYIIMVPOXPVIYUOXMGWFCFVPVZVYCZFWDSMMNCLFZTQTMGBFRUANLUEHEUFETPFVCLITWVEFLFRYFIPVCUKGGPLYYFOFPSVSNDGVLVNISOXGJZCZIHXNDZCFUCSPPYAPZCXADAXENDTBETWZIYVKTPTQSCETQJGJMPEPPSIXMRNPLBRNWZVDUQYUKSCLUXQWTTJZPPPVSLRAKRNUXFMLAGVUIEGZFFLRYUQKBUUFFSBUAWGHNMFLIWCYIVCCOLEXLYENZQMCBIHBUTYSSFSLEJQVKEAODRTOPMILUKACSPMUBLAJSIMIRBXUKZWZWLHXAWWSBRAXNPFHXHSVOGCGCMVDFOQZJFJSOXIRNAWHQEUQKHCPMBJEPHIIDQUDUDEIIMJDIYVBHBKRPTQLSYXXREMCIFIWBVKQXKZQAWDIZGSCZOFYHRQDNNKDGQNISOLNMELOPGCZQTXNJMWNQTCLUWGCXUEGUQNWYBFBEHRAWTPVJZMAXARNQTDFPLBYIOWTNJWWFSCVLRAUXJXDTTAWIUXRDXBQNNCAAGGTPGZQMQKXKKKGTLKQ