I am trying to write a simple program to use stacks.It is giving me the error
The type Stack is not generic; it cannot be parameterized with arguments
import java.util.*;
public class Stack {
public static void main(String[] args)
{
Stack<Character> stack = new Stack<> ();
s.push("Hello");
System.out.println(s);
}
}