stable marriage - My method isn't putting names into my array and removing them properly -
stable marriage - My method isn't putting names into my array and removing them properly - i've been working on "stable marriage problem" class i'm in , cannot implement gale-shapely algorithm correctly. out set when prompted: for (int q = 0; q < nummen; q++ ) system.out.println(couples[q].tostring()); is "brian patricia george nancy john susan robert nancy stephen joyce" on different lines. how ever proper combination "brian patricia george joyce john susan robert nancy stephen anne. issue won't remove "nancy" george's pair. background men[][] matrix of men's preferences in format men[i][0] name of each man 0 < < 4 , men[i][k] k preferences in positions 1 < k < 5. same thing women matrix. couples[] array of object "couple" , array holds each matched pair of man , woman. here's place problem is: public static void solvemenmarriages() { int i, k; string m, w, fiance; = 0...