As an example,It should look like this,
import java.util.Scanner;
class hw {static void reverse() {Stack s = new Stack();int i;Scanner read = new Scanner(System.in);
do {System.out.print(“Write an positive integer: “);i = read.nextInt();if(i>=0) s.push(i);} while(i>=0);
while(!s.empty())System.out.println(“integer: “+s.pop());
}
public static void main(String[] arg) {inverse();}}1) Using the Stack class, write the code that shows the
PayPal Gateway not configured
PayPal Gateway not configured