GaleShapley.java
//and save it to a .txt file with the respective naming convention required
and save it to a .txt file with the respective naming convention required
and save it to a . txt file with the respective naming convention required
void save(String filename, String[] output, int listSize) throws Exception {
        try (PrintWriter out = new PrintWriter("match_"+filename+".txt")) {
            for(int i = 0; i < listSize; i++ ){
                out.println(output[i]);
                out.flush();
            }
        }catch (Exception e){
        } 
    }
void save ( String filename , String [ ] output , int listSize ) throws Exception { try ( PrintWriter out = new PrintWriter ( "match_" + filename + ".txt" ) ) { for ( int i = 0 ; i < listSize ; i ++ ) { out . println ( output [ i ] ) ; out . flush ( ) ; } } catch ( Exception e ) { } }
and save it to a .txt file with the respective naming convention required
and save it to a . txt file with the respective naming convention required
//An exception is placed if there is an error in the name of the output file