Ick! I would do it in a HashMap and just spit the values to System.out. But that's just me.