Question: Note: Array class with its build in methods are not allowed. Predefined methods from the String class are allowed: substring, find, charAt, and isEmpty. Define

Note: Array class with its build in methods are not allowed. Predefined methods from the String class are allowed: substring, find, charAt, and
isEmpty.
Define a method called SecondLowest. We pass an array when called it and print the second lowest number in that array. The array must have at least 2 numbers, shows a message Invalid size when not applied.
Example 1:
Enter Array Size: 5
Enter Number 1: 100
Enter Number 2: 155
Enter Number 3: 40
Enter Number 4: 78
Enter Number 5: 90
Second lowest number is: 78
Example 2:
Enter Array Size: 1
Invalid size

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!