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:
Extracted text: Input INDEX[0]: OK CancelExtracted 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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here