Using scanner in creating the size of the stack
Scanner sc = new Scanner(System.in); System.out.println(“Enter the Size of Stack: “); int size = 0; size = sc.nextInt(); Stack stack = new Stack (size); /* line code error here */ I tried to insert the int datatype “size” into the stack constructor and it shows this type of error: “constructor Stack in class java.util.Stack cannot […]