- Read CODE 26-27
- Complete Lesson 02 quiz
To complete this assignment, you must have Docker and VS Code with the Dev Containers extension installed.
For this assignment, you will complete a quiz by modifying a Java application. Within the quiz project, there are tests that you will need to make pass in order to submit your answers. Here are the instructions for completing the assignment:
- Make sure to sync your fork to pull in the latest changes.
- Open the project in VS Code and make sure to select
Reopen in Container
when prompted. - Open the Lesson2.java file located in the quiz/lesson_02_quiz/src/main/java/com/codedifferently/lesson_02_quiz/ directory.
- Update the code to provide the correct answers to the given questions.
- This project uses a tool called Spotless to check that the code is formatted correctly. Once you are done with your changes, you can automatically fix formatting issues using the following command in the
quiz
sub-directory using the terminal:
./gradlew spotlessApply
- When ready to test, run the following command in the
quiz
sub-directory using the terminal:
./gradlew check
- Once all tests pass, submit your work by creating a pull request (PR).