Try this.
for(int i = 0; i < Preferences.length; i++) { for(int j = 0; j < Preferences[i].length; j++) { System.out.println(Preferences[i][j]); } }