Posted on 2006-07-07
Is it possible to do dynamic evaluation in Java?
public class test
public static String username;
public static void set(String name, String value)
eval(name + '=' + value);
If I called:
the value "some_name" would get placed in the username String.