Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Stack;

public class Main {
    public static void main(String args[]) {
        Stack<String> s = new Stack<String>();
        s.push("A");
        s.push("B");
        s.push("C");

        System.out.println(s.pop());
        System.out.println(s.empty());
    }
}