[Solved] array of even, odd, and negative integers [closed]
First, I think you want your input loop to look something like this – for (int x = 0; x < 10; ++x) { System.out.println(“Enter number: ” + (x + 1)); int num = scan.nextInt(); // <– get user input to // test. // Test for negative first. if (num < 0) { negativeList[neg++] = … Read more