Welcome back to coding!
Let's kick things off by solving three basic problems to refresh your knowledge of Java and Git.
Follow these steps to set up your project:
Fork this repo and clone it to your local machine via Git:
git clone <repository_url>
- In the test folders there are some unit tests using junit library that you and your mentors will use in order to test the correctness of your programm.
- You can run the file or individual functions to see the results of the test in Intellij idea.
- Implement the required code based on the comments in the given files.
- The project structure looks like this:
src
├── main
│ ├── java
│ │ └── Exercises.java
│ └── resources
└── test
└── java
├── TestFib.java
├── TestPrime.java
└── TestTriangle.java
- Each file under
test/java
should be executed, and all test cases must pass to confirm your solutions work properly.
To stage and commit files, use the following Git commands:
-
Stage a specific file:
git add <file_name>
-
Stage all files at once:
git add .
or
git add -A
-
Commit changes:
git commit -m "Your descriptive commit message"
git push origin Develop
- Add your mentor as a collaborator to your forked repo.
- Push the final commit before the deadline.
Before starting, ensure you have:
- Basic knowledge of Java
- A good grasp of Git commands
Good luck, and happy coding!