Write a Java program that prints the length of the longest sorted (in ascending order) subarray o...

Write a Java program that prints the length of the longest sorted (in ascending order) subarray of a given unsorted array of 10 integers.

-- Example: If input array is ==== 4 2 1 5 6 4 2 6 -1 5

then the output should be 3.

-- Ask the user to enter the 10 integers from the keyboard.

-- Print the last answer only (No other messages should be printed in the program)

-- VPL evaluation is not available in this exercise.

Solved
COMPUTER SCIENCE 1 Answer Ria Nagpal