Professional Documents
Culture Documents
pref, int id) { preferences = pref; identification = id; } public int getId() { return identification; } public int[] getAllPref() { return preferences; } public int getPref(int j) { if (j < 0 || j >= preferences.length) { return -1; } else { return preferences[j]; } } }