I have a simple question. Is there a way ( using reflections I suppose ) to iterate all the static values of a class?
For instance
class Any { s
Your solution works for public fields but not private fields like you have in your example. If you want to be able to access the private fields of a class you need to use getDeclaredFields() instead of getFields().