作业帮 > 综合 > 作业

帮忙给看一下这个程序,我想把偶数存在a[]数组里,把奇数存在b[]数组里,并打印输出?

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/07 09:49:01
帮忙给看一下这个程序,我想把偶数存在a[]数组里,把奇数存在b[]数组里,并打印输出?
class TestInteger
{
public static void main(String[] args)
{
int[] a = new int[15];
int[] b = new int[15];
int x = 0,y = 0;
for(int n=2;n
for(x=0; x