Create a program in a single Java source file that completes the following.
Implements the concept of push, pop and presents an example of how to use it.
More details:
Create the following methods.
Method 1: public static long[] push( long[] array, long item ); // Pushes a new item onto the end of the array
Method 2: public static long pop( long[] array ); // Remove first item from the array and return the value
Method 3: public static void main( String[] args );
Push the following values into the array (1, 2, 3, 4, 5, 6, 7, 8, 9 )
Pop all the values off of the array and print them to System.out in the following format: System.out.printf( "Popped %d off the arrayn", value );