| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 906 人关注过本帖
标题:求助java数组组合问题
只看楼主 加入收藏
bailanrong
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-7-2
收藏
 问题点数:0 回复次数:1 
求助java数组组合问题
怎么实现数组的组合
例如String[] a={“1”,“2”,“3”}
String[] b={“a”,“b”,“c”}
String[] a={“h”,“w”,“y”}
怎么得到:String[] zz={"1a","1b","1c","1h","1w","1y","2a","2b","2c","2h","2w","2y","3a","3b","3c","3h","3w","3y","ah","aw","ay","bh","bw","by","ch","cw","cy",}
搜索更多相关主题的帖子: java 
2008-07-02 21:14
macrossyun
Rank: 1
等 级:新手上路
帖 子:56
专家分:0
注 册:2006-7-28
收藏
得分:0 
String zz[]=new String[a.length+b.length+c.length];
然后用循环把三个数组附到zz里不就行了。

初出茅庐
2008-07-05 17:04
快速回复:求助java数组组合问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.040011 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved