...
When executed, this code produces an exception because the value returned by list.get(0)
is not of the proper type , (that is, String
):
Code Block |
---|
Exception in thread "main" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at Raw.print(Test.java:11) at Raw.main(Test.java:14) |
...