Commit 0b1e5c39 authored by Hyun Soo  Kim's avatar Hyun Soo Kim
Browse files

Merge branch 'wip_db' of agile.bu.edu:ec504/ec504_projects/group4 into wip_db

parents e168ff40 c6892596
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -29,8 +29,9 @@ public class MoleculeDatabase implements Serializable {
    public Molecule findMolecule(Molecule molecule) {
        // Iterate through the array list of molecules inside the database
        for (Molecule dbMolecule : db) {
            if (areMoleculesEqual(dbMolecule, molecule)) {
                return dbMolecule; // Return the isomorphic molecule
            Molecule result = dbMolecule.areMoleculesEqual(molecule);
            if (result != null) {
                return result; // Return the isomorphic molecule
            }
        }
        System.out.println("No isomorphic molecule found in database.");