阅读背景:

需要一个公式来使用2 for循环设置arraylist的索引

来源:互联网 

I'm trying to use 2 for loops to set each value of each element in the arraylist to zero. Problem is that I need a formula to set each index to be 0 through 9. This formula would be placed where it says "FORMULA" in the below code. My desired result would be a printed line of {0,0,0,0,0,0,0,0,0,0,} using the exact same code as below but with "FORMULA" being replaced with an appropriate formula to set the correct index through each loop. Let me know if you need further a explanation.I'm trying to use 2 for loops to set each value




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: