代碼是在這裏:如何用逗號在一行顯示文件的輸出?
這裏是我的電流輸出:
OUTPUT:
Integer Array Contents:
, -3, 2, 0, 0, 1, -5
Total odd numbers: 3
Odd numbers are: -3 1 -5 0 0 0
Index of last zero: 3
Minimum: -5
Maximum: 2
Sum: -5
Element mean is: 0.0
//1) How do I get rid of the random "," at the beginning? Lol
//2) How do I get rid of the 0's that are in the "Odd numbers are: " category.
//3) Mean's not working. What should I do to fix that. Maybe it has something to do
//with the extra zeroes? I made it into a double and that didnt do anything either.
您的代碼請 –
在Pastebin中。 – way245