Java tutorial
//package com.java2s; // License as published by the Free Software Foundation; either import java.util.Stack; public class Main { /** * Type-safe initializer. */ public static final <K> Stack<K> newStack() { return new Stack<K>(); } }