Inspired by Wattpad, Mr. Alex is on a mission to build "CODE WALL" - A community for developers. He has laid out a plan & hired a designer & developer to work on the project. Unfortunately, due to some trust issues, he had to fire them. He is suspicious that one of his competitors is trying to steal his idea & work on it quickly even before him.
This is Alex's dream project. Well, now it's ours too. We assured him that you'd help out your best to finish this on time. So, could you hurry up & get going?
Fork this repo
Clone this repo
Practice Java basics - operators, conditions, loops, class and object
Upon completion, run the following commands:
git add .
git commit -m "ProGrad ID"
git push origin master
And finally, create a pull request so your ProGrad Mentor (PM) can review your work.
- Do not modify the entire code.
- Edit the code as per the instructions.
- Go to Java Resources -> src folder.
- You will have 3 packages src/controller, src/model and src/businesslogic.
- Create Classes inside the model package
- Once the progressions are completed, follow the instructions to run the application and test your code.
- Use username as admin and password as admin to login inside the blog.
- This is a continuation of Day-3.You can build on top of Day-3 Project Builder.
- Right click on the project.
- Go to Run as -> Run on server.
- You can check the output in eclipse browser or in your browser.
- There are 3 inputs
- First input is a String which corresponds to blog title
- Second input is a String which corresponds to blog description.
- Third input is a String which corresponds to system date{use LocalDate} .
- Output is a boolean value true or false.
- We will check if the blog title and description contains any offensive word or not.
- Your task is to make sure that the title and description does not contain any offensive words.
- To achieve this, lets create a abstract class OffensiveWordsChecker.
- Create an abstract method public abstract boolean checkBlog(Blog blog).
- Create an Interface - public interface OffensiveWordsInterface.
- Create two methods boolean checkBlogTitle(Blog blog) and boolean checkBlogDescription(Blog blog).
- Create a class called CheckBlogPost which extends OffensiveWordsChecker and also implements OffensiveWordsInterface.
- Implement checkBlog(Blog blog) method.
- The checkBlog(Blog blog) method in turn should invoke checkBlogTitle(Blog blog) and checkBlogDescription(Blog blog).
- The checkBlog method should return true if there are no offensive words otherwise it should return false.
- You need to use the google offensive word list which is located in your project directory under resources - full-list-of-bad-words_text-file_2018_07_30.txt
- Use it for your reference of bad words.
- Select 25 offensive words from the file and store it in an array.
- You can compare the offensive words with the array and return the output.
- The checkBlogTitle(Blog blog) should check if the blog title contains any offensive words.
- Return true if there are no offensive words else false if it contains any offensive words.
- You can use the array created in Progression - 3 to check if title contains any offensive words.
- Return true if there are no offensive words.
- The checkBlogDescription(Blog blog) should check if the blog description contains any offensive words.
- Return true if there are no offensive words else false if it contains any offensive words.
- You can use the array created in Progression - 3 to check if title contains any offensive words.
- Return true if there are no offensive words.
- Create an object for checkBlogPost in BlogController.
- Call the checkBlog method with the object created and pass user as argument.
- Store the value in a boolean variable checkblog.
Happy Coding ProGrad ❤️