Skip to content
Snippets Groups Projects
Commit e5cf0495 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

fix errors that crept in, dunno why!

parent 114cacde
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@
package MV3500Cohort2020JulySeptember.homework4.White.working;
import edu.nps.moves.dis7.utilities.stream.PduRecorder;
import java.io.IOException;
import java.util.Scanner;
/** Class to leverage the {@link edu.nps.moves.dis7.utilities.stream.PduRecorder}
......@@ -65,7 +64,7 @@ public class PduListenerSaver
System.out.println("Type p/enter to pause, r/enter to resume, q/enter to quit");
String line = scan.nextLine();
if (line.equalsIgnoreCase("p") && state == mystate.RUNNING) {
recorder.stopPause();
recorder.pause();
state = mystate.PAUSED;
System.out.println("... now PAUSED");
}
......@@ -73,7 +72,7 @@ public class PduListenerSaver
System.out.println("... still PAUSED");
}
else if (line.equalsIgnoreCase("r") && state == mystate.PAUSED) {
recorder.startResume();
recorder.resume();
state = mystate.RUNNING;
System.out.println("... now RUNNING");
}
......@@ -82,7 +81,7 @@ public class PduListenerSaver
}
else if (line.equalsIgnoreCase("q")) {
System.out.println("... QUIT");
recorder.end();
recorder.stop();
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment