So I'm trying to run this simple program here:
import java.util.*;
class StackDemo
{
public static void main(String[] args) {
Stack s = new Stack();
s.push(5);
s.push("dog");
System.out.print(s);
}
}
StackDemo.java
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked
for details.
Process completed.
It displays the expected result, which is "[5, dog]"
but I don't understand that message on the Build Output window.
What could possibly be wrong here?