Question: Write a Boolean method called sorted that takes three int parameters and returns true if the numbers are sorted in ascending order.
For instance when calledsorted(1, 2, 3) should return true and sorted(3, 1, 2)would return false.
Add comments in code section. Code this program in java programming.