By puredanger
via codetojoy.blogspot.com
Published: Jun 05 2008 / 12:54
Consider this problem: Write a program that takes a fully qualified Java class name as input. The program should call its no-arg constructor and print out the object's toString method to prove the object was constructed. You might think "I could do that with reflection, but I can't be bothered looking it up right now".
Add your comment
Voters For This Link (13)
-
puredanger -
rick -
keyofdminor -
aclarke -
sobin -
paul_houle -
m0smith -
yardena -
judithsanderlin -
boocockp -
deterb -
scottbale -
davneter