|
1 | 1 | # ThinkJavaCode
|
2 |
| -Supporting code for Think Java by Allen Downey and Chris Mayfield. |
| 2 | +Supporting code for *Think Java* by Allen Downey and Chris Mayfield. |
| 3 | + |
| 4 | +This is a Git repository that contains the code examples from the book and starter code for some exercises. |
| 5 | + |
| 6 | +Git is a version control system that allows you to keep track of the files that make up a project. |
| 7 | +A collection of files under Git's control is called a repository. |
| 8 | + |
| 9 | +There are several ways you can work with the code: |
| 10 | + |
| 11 | +* You can create a copy of this repository on GitHub by pressing the "Fork" button in the upper right. |
| 12 | +If you don't already have a GitHub account, you'll need to create one. |
| 13 | +After forking, you'll have your own repository on GitHub that you can use to keep track of code you write. |
| 14 | +Then you can ``clone'' the repository, which downloads a copy of the files to your computer. |
| 15 | + |
| 16 | +* Or you could clone the repository without forking. If you choose this option, you don't need a GitHub account, but you won't be able to save your changes back in GitHub. |
| 17 | + |
| 18 | +* If you don't want to use Git at all, you can download the code in a zip archive using the "Download ZIP" button on this page, or [this link](http://tinyurl.com/ThinkJavaCodeZip). |
| 19 | + |
| 20 | +To clone a repository, you need a Git client installed on your computer. The URL of this repository is `https://github.com/AllenDowney/ThinkJavaCode.git`. If you use Git from the command line, you can clone it like this: |
| 21 | + |
| 22 | + git clone https://github.com/AllenDowney/ThinkJavaCode.git |
| 23 | + |
| 24 | +After you clone the repository or unzip the zip file, you should have a directory called `ThinkJavaCode` with a subdirectory for each chapter in the book. |
| 25 | + |
| 26 | +All the examples in this book were developed and tested using Java SE Development Kit 7. |
| 27 | +If you are using a more recent version, the examples in this book should still work. |
| 28 | +If you are using an older version, some of them may not. |
| 29 | + |
0 commit comments