标题:关于while循环 or for循环 跟arrays的互换。。
取消只看楼主
ffx123456
Rank: 1
等 级:新手上路
帖 子:25
专家分:0
注 册:2006-6-16
 问题点数:0 回复次数:1 
关于while循环 or for循环 跟arrays的互换。。

两个arrays Strings:String[] quoteOne = {"Facts","are","the","enemy","of","truth"};
String[] quoteTwo = {"Glory","is","fleeting","Obscurity","is","forever"};
怎么样用while循环 或 for 循环把String[] quoteOne & String[] quoteTwo里面的元素调换,例如quoteOne[0] 包含String

"Glory", quoteTwo[0]包含String“facts”, quoteOne[1]包含String"is", quoteTwo[1]包含String"are"等等。。谢谢。

搜索更多相关主题的帖子: arrays 
2006-06-18 21:09
ffx123456
Rank: 1
等 级:新手上路
帖 子:25
专家分:0
注 册:2006-6-16
得分:0 

谢谢大家~

2006-06-19 18:37



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-73207-1-1.html




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

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