Built-in: Check Order of 3

Order check. Write a program, OrderCheck_YI.java that takes three double values x, y, and z as command-line arguments and prints true if the values are strictly ascending or descending (x < y < z or x > y > z), and false otherwise.