Question: java coding Write a program that stores positive random integers in an array. . Get the element number(length of the array) from the user and
Write a program that stores positive random integers in an array. . Get the element number(length of the array) from the user and fill this array randomly. The range is up to you. . Your job is to write a method that finds and returns the next smallest positive integer considering the smallest element in this array Show me your main method too. DO NOT USE ANY PRE DEFINED METHODS IN THE JAVA API, IF YOU DO, YOU WILL GET O FROM THIS QUESTION SAMPLE OUTPUT 1 The elements are 15, 7, 74, 12, 1, 10, 69,99, 5, 731 The next was integer 4 SAMPLE OUTPUT 2 The elets are 164, 18, 94, 50, 70., 18, 20, 3, 671 The next alles integer 1 The prompt messages for the user is entirely up to you. Sample outputs are just inserted here for you to understand the question better. You can and should develop your own solutions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
