Commit 3fbd0fc8 authored by Phuong Khanh Tran's avatar Phuong Khanh Tran
Browse files

Update MDB.java

parent a3fb4962
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ import java.util.HashMap;
import java.util.Map;

/**
 * A class represents the molecule database that works with the GUI
 * A class represents the molecule database that works with the GUI.
 */
public class MDB {

@@ -38,6 +38,9 @@ public class MDB {
        }
        outputTextArea.append("# of molecules: " + size + "\n\n");

        if (size == 0)
            return; // if database is empty, exit early

        // Print the list of molecules
        outputTextArea.append("List of molecules: " + "\n\n");
        for (Integer atomCount : this.db.keySet()) {