can someone help me w/ this?! how to evaluate the EVEN or ODD..all EVEN numbers should store on arrayEven variable,while all ODD numbers store on arrayOdd variable..
import java.util.Scanner;
import java.util.Arrays;
public class online1{
public static void main(String args[]){
int SIZE= 10;
int []number = new int[SIZE];
Scanner input = new Scanner(System.in);
for(int index=0; index<SIZE; index++)
{
System.out.print("Enter Integer Number: ");
number[index] = input.nextInt();
}
System.out.println();
Arrays.sort(number);
System.out.print("arrayNumber: ");
for(int index=0;index<SIZE;index++)
System.out.print(" "+ number[index]);
System.out.println();
}
}