JAVA Class (Stack: The StackOfIntegers Class)Define the StackOfIntegers class that contains:
Two int[] data fields named elements that specify an array tostore integers in the stack.
The int data field size that specify the number of integers inthe stack.
A constructor that creates an empty stack with a defaultcapacity of 16.
A constructor that creates an empty stack with a specified intcapacity.
A boolean method empty() that returns true if the stack isempty.
A method push(int value) that stores an integer into the topof the stack.
A int method pop() that Removes the integer at the top of thestack and
OR
OR