Lesson on Java Debugging
- Go to this Repo and FORK this repository onto your github
- Copy the HTTPS URL from the "Code" button on your GitHub
- Open your terminal (Git bash) and navigate to the appropriate location where you wish to save the folder to and run
git clone URL-you-Copied-goes-here
-
Open IntelliJ and click on new project
-
Select Java and make sure you have a Project SDK selected and then click next
- Leave the box for create project from template unchecked and click next
-
Click on three dots ... next to project location. Change project location to the directory you just cloned to your machine. Click OK and then click Finish.
-
Main
will be the entry point for your application. -
To run the first time right click on
Main.java
and clickRun Main.main()
which will also open the Run output and then on the Green play button will attempt further reruns
- Run the Application.
- You should receive errors. It is your job to find the bugs in the code and fix them.
- Once you have found and fixed all of the bugs you should be able to run the program.
- Make sure your program produces the expected results. There may be some logic errors in the program as well.
- Push your changes up to your repository. From your git bash terminal, enter the following commands:
git add .
git commit -m “Add solutions to activity”
git push -u origin main
- Go to your GitHub repository. You should see your changes.
- Submit your pull request with your solution