/*                                                                      *\
**                    SICU Stress Measurement System                    **
**                      Project P04  |  C380 Team A                     **
**          EBME 380: Biomedical Engineering Design Experience          **
**                    Case Western Reserve University                   **
**                          2016 Fall Semester                          **
\*                                                                      */

package edu.cwru.sicu_sms.util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * This class provides support for reading property files (i.e. marked with the <code>.properties</code> extension).
 *
 * @since December 13, 2016
 * @author Ted Frohlich <ttf10@case.edu>
 * @author Abby Walker <amw138@case.edu>
 */
public class PropertyOperator {
    
    /**
     * Loads the property list from the specified file.
     *
     * @param filename the system-dependent name of the <code>.properties</code> file to be loaded
     *
     * @return a reference to the {@link Properties} object instantiated in this process, populated with key-value pairs loaded from the file, or left unpopulated if the file was not found
     *
     * @implNote This method is defined with the <code>synchronized</code> modifier, making it thread-safe.
     */
    public static synchronized Properties loadProperties(String filename) {
        Properties properties = new Properties();
        try {
            FileInputStream inStream = new FileInputStream(filename);
            properties.load(inStream);
            inStream.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties;
    }
    
}

@@ -584,16 +584,49 @@
 Stream;%0A
+import java.io.FileOutputStream;%0A
 import j
@@ -1074,28 +1074,26 @@
 ame of the %3C
-code
+tt
 %3E.properties
@@ -1094,20 +1094,18 @@
 erties%3C/
-code
+tt
 %3E file t
@@ -1163,12 +1163,12 @@
 e %7B@
-link
+code
  Pro
@@ -1368,22 +1368,23 @@
 ith the 
-%3C
+%7B@
 code
-%3E
+ 
 synchron
@@ -1387,23 +1387,17 @@
 hronized
-%3C/code%3E
+%7D
  modifie
@@ -1718,16 +1718,24 @@
        %7D
+%0A       
  catch (
@@ -1832,10 +1832,1031 @@
  %7D%0A    %0A
+    /**%0A     * Saves the property list in the specified file, with the given description.%0A     *%0A     * @param properties the property list%0A     * @param filename   the system-dependent name of the %3Ccode%3E.properties%3C/code%3E file to be loaded%0A     * @param comment    a description of the property list to be inserted as a header comment%0A     *%0A     * @return %7B@code true%7D if this procedure was successful; %7B@code false%7D otherwise%0A     *%0A     * @implNote This method is defined with the %7B@code synchronized%7D modifier, making it thread-safe.%0A     */%0A    public static synchronized boolean saveProperties(Properties properties, String filename, String comment) %7B%0A        boolean success = false;%0A        try %7B%0A            FileOutputStream outStream = new FileOutputStream(filename);%0A            properties.store(outStream, comment);%0A            outStream.close();%0A            %0A            success = true;%0A        %7D%0A        catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        return success;%0A    %7D%0A    %0A
 %7D%0A

Add 'saveProperties' method