Java tutorial
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("Next: " + s.peek()); } }