Extend the given program by creating a checkNumber method which accepts an Object and implement a switch statement with guarded patterns to print certain information depending on the argument.
Print
"Positive integer"if the object is anIntegergreater than 0.Print
"Zero"if the object is anIntegerequal to 0.Print
"Negative integer"if the object is anIntegerless than 0.Print
"Not an integer"for any other object.