Logger

Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates

For This or a Similar Paper Click To Order Now

Oracle documentation:
Java API: https://docs.oracle.com/en/java/javase/11/docs/api/index.html
Tutorials: https://docs.oracle.com/javase/tutorial/
For this assignment, you will be designing and writing a full program from scratch, rather than filling in methods from provided starter code. It will probably take you significantly more time, so be sure to plan accordingly.
Input handling
We do not recommend using a Scanner to read files in the solo or group projects. BufferedReader is preferred.
Adding an external library (such as JSON.simple) to your IDE
Eclipse: http://mathcenter.oxford.emory.edu/site/cs170/externalLib/. Make sure you add it to the Classpath, not the Modulepath.
IntelliJ: Click File -> Project Structure -> Libraries. Click the plus sign and select Java then browse for where you stored the .jar file on your computer. Click OK when done.
Regular expressions
An excellent resource for checking your patterns is https://regex101.com/. Make sure to select Java under the Flavor menu on the left. Put your regular expression (without quotes) in the first text box and then the string you want to check in the larger text box below it. The Match Information section on the right will tell you if you have a match. Also, you will need to use single backslashes on this site, but remember to use double backslashes in your Java files. For example, you would use “s” for a whitespace on this site but “\s” in Java since we need to escape the escape character. Your IDE may do this automatically when pasting in from the site, so make sure to double check.
There are several regex operators that will make your job easier when checking for valid tweets. Here is a good resource on them: http://web.mit.edu/gnu/doc/html/regex_3.html
Error propagation
There are several strategies for handling errors than can occur during execution of this program. The “Error Propagation Techniques” reading in Week 11 covers a few of them and addresses frequently asked questions.
General:
Tweets
If the tweet file exists and can be read then you can assume all of the tweet data is properly formatted and is not missing information
States
The states file will not necessarily supply the states in alphabetical order. Thus, you will need to make sure that your program outputs the states in the required order
Logger
Each tweet should be logged on a new line

Place your order now for a similar assignment and have exceptional work written by our team of experts, At affordable rates

For This or a Similar Paper Click To Order Now

Leave a Reply

Your email address will not be published. Required fields are marked *