| ||||||||||
B is pretty good. C's first sentence is fine, but I don't grok the second one. D is in the same ballpark but would only earn partial credit. Try giving me an example of casting. When can you cast and when can't you? Can I say (String) 12? But I can say (Agent) simulation.getAgents().get(0)? Why? Why does that last one work? What's it doing? Mark Guzdial |