0.2. Quiz
Quiz 0: Getting Started
Coding
Right-click on the src/main/java
directory under the project and create the package edu.emory.cs.utils
. Right-click on the utils
package and create the Java class Utils
:
Add
Utils.java
to git.Add the following methods to the
Utils
class:
Run the program by clicking [Run -> Run]
. If you see 5
on the output pane, your program runs successfully.
Testing
Open build.gradle
and add the following configurations (if not already), which would allow you to perform JUnit Testing:
Right-click on the src/test/java
directory under the project and create the package edu.emory.cs.utils
. Right-click on the utils
package and create the Java class UtilsTest
:
Add
UtilsTest.java
to Git.Add the following method to the
UtilsTest
class. Make sure to include all imports:
Run the test by clicking [Run -> Run]
. If you see the test passed, your unit test runs successfully.
Submission
Add the instructors as collaborators in your GitHub repository:
Jinho Choi:
jdchoi77
Peilin Wu:
qualidea1217
Jeongrok Yu: jeongrok
Zinc Zhao:
ZincZhao
2. Commit and push the following to your GitHub repository:
3. Submit the URL of your GitHub repository to Canvas.
Last updated
Was this helpful?