This is a program for assessment 1 to process a specific csv file and allow the user to perform different analyses on it. This includes all required functionality like retrieving posts, deleting posts, adding posts,
This class handles all backend work that involved manipulating or returning the social media posts.
This class handles anything to do with user input. It instantiates the logic class and handles any exceptions that the logic class may throw. It also tests user input for both menu navigation and validating the details of the user specified post to add.
This class instantiates the UI class and performs the initial file check, handling any errors related to reading the csv file. It then runs the main UI loop until the signal is given to quit.
- Unzip csv-processor.zip to a folder
- Navigate your terminal/command line interface of choice to the "assignment1" folder containing "src"
- Copy your chosen flavour of junit 4 to this folder
- Compile and then run using the following commands:
javac -classpath junit.jar:hamcrest.jar -d bin ./src/assignment1/*.java
javac -classpath junit.jar;hamcrest.jar -d bin src/assignment1/*.java
- Navigate to the bin folder
- Run with: java assignment1.Main
Then either I screwed up my instructions/files or you screwed up your compiling. Not to worry, though, you can run the included pre-compiled EmergencyMain.jar (Compiled for =>JavaSE-1.8) file inside the bin folder with the command:
java -jar EmergencyMain.jar