Question: Write a Java program to do the following: 1. Promote the user enter the size of the array. 2. Create an array named list
Write a Java program to do the following: 1. Promote the user enter the size of the array. 2. Create an array named list to hold integer values. 3. Prompt the user to enter value of the array. 4. Ask the user to enter an integer x. 5. Count the numbers of occurrence of x in the list. 6. Print on Screen all odd numbers in the list less than x. Example: Enter size of the list: 10 Enter 10 values: 1 2 3 -4 -5 3-1 3 9 13 Output: Enter x: 3 3 repeated 3 times in the list. Odd numbers
Step by Step Solution
3.38 Rating (160 Votes )
There are 3 Steps involved in it
Heres a Java program that accomplishes these tasks java import javautilScanner public class ArrayOpe... View full answer
Get step-by-step solutions from verified subject matter experts
