I got a class Config wich looks like that:
public Class Config { public static int someIntValue = 0; public static String someText = \"some text\"; }
I would just use java.util.Properties, or some wrapper around it. Another good approach is java bean and something like xstream to save/load stuff.