java中如何将数组里面的元素显示出来?

2025-02-22 10:51:29
推荐回答(1个)
回答1:

用for
loop打出来呗。
假设数组叫s,加入以下片段:
for(i
=
0;
ii++)
{
System.out.print(s[i]
+
"
");
}