java 问题How can you create an array of ints in Java and initi

java 问题
How can you create an array of ints in Java and initialize it with the values of all
single digit odd positive numbers (between 0-9), all in one step/line?
嗳彤 1年前 已收到1个回答 举报

finalcity 春芽

共回答了16个问题采纳率:87.5% 举报

int[] a={1,3,5,7,9};

1年前

10
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.032 s. - webmaster@yulucn.com