Create a JAVA program that accepts 10 integers of an array in form of a input dialog. The program will return the array list using message dialog, but instead of the values, the words "ODD" and "EVEN"...


Create a JAVA program that accepts 10 integers of an array in form of a input dialog. The program will return the array list using message dialog, but instead of the values, the words "ODD" and "EVEN" will be shown on each element and must get the sum of all even and odd numbers.


Output:





Input<br>INDEX[0]:<br>OK<br>Cancel<br>

Extracted text: Input INDEX[0]: OK Cancel
Array List<br>INDEX[0]: ODD<br>INDEX[1]: EVEN<br>INDEX[2]: ODD<br>INDEX[3]: EVEN<br>INDEX[4]: EVEN<br>INDEX[5]: ODD<br>INDEX[6]: EVEN<br>INDEX[7]: ODD<br>INDEX[8]: EVEN<br>INDEX[9]: ODD<br>Sum of all even numbers: 22<br>Sum of all odd numbers: 23<br>OK<br>

Extracted text: Array List INDEX[0]: ODD INDEX[1]: EVEN INDEX[2]: ODD INDEX[3]: EVEN INDEX[4]: EVEN INDEX[5]: ODD INDEX[6]: EVEN INDEX[7]: ODD INDEX[8]: EVEN INDEX[9]: ODD Sum of all even numbers: 22 Sum of all odd numbers: 23 OK

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here