package table;
import java.util.Stack;
import javax.swing.JFrame;
public class Txt extends JFrame
{
public static void main ( String[] args )
{
Stackstack1 = new Stack ();
stack1.push (1);
Stackstack2 = (Stack ) stack1.clone ();
stack1.clear ();
System.out.println (stack2);
}
}