MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.util.Stack;

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

        System.out.println(s);
    }
}