2012年3月16日

Java Puzzler

摘要: puzzler 1:does the following code compile?public class Puzzler { <T> T cast(T t, Class<T> clazz) { return clazz.cast(t); } <T> T nop(T t) { return cast(t, t.getClass()); }} 阅读全文

posted @ 2012-03-16 23:44 grepp 阅读(77) 评论(0) 推荐(0) 编辑

导航