|Select language: English Dutch|
|Available on Amazon|
|Info About this book Required Knowledge Source code|
Download the source code
The souce code contains all the examples and the quizzes of the book Java quizmaster for beginners.
In the main book you can find a step by step explanation of all the outcomes of the quizzes. For each quiz you need to execute one or more assignments. From the fifth chapter of the book, there is an assignment regarding each chapter. You will be asked to write a program from scratch. Remember that the execution of all the assignments are in the work book. Here is the link to the books on Amazon!
All the quizcodes are in the file book_en_jqmbg.zip. If you unzip the file you will see two folders namely, src (the source code) and bin (the machine code). The machine code is created automatically after the source code is compiled, that’s why you need only the src folder. Click the button below to download the source code of the book.
Setup the source code
For this project, we use Eclipse 3.8.1 with JDK 1.7 (Java Development Kit) or later versions. You can download Eclipse free via the internet. You can also download Java and Eclipse separately for your operating system.
To see which Java version your Eclipse use, you can click on,
Windows → Preferences.
Click Java → Compile you can see on the right side the version of the Java (JDK). The code has been tested with the Java 1.7, that is why this version or newer is recommended.
Create a new project
By Installing Eclipse a folder called workspace would be created in which you can find all your projects. When Eclipse starts, you will see a screen as follows. Click on the menu
File → New → Java Project.
Write the name of the project, for example, my_projects, and then click Finish
On the next screen, click Yes.
At the start of Eclipse you see a screen as below. You see at the top of the left-side of your screen the tab Package Explorer. The Navigator tab is standard not available, but it is convenient to use it.
Click Window → Show view and click Navigator. The Navigator tab is now visible next to the tab Package Explorer. See the image below!
Setup the source code of the book
Extract the zip file book_en_jqmbg.zip of the source code, and copy the content of the src directory of the source code to the folder workspace/my_project/src. The src directory is automatically created within your project my_project.
If you start Eclipse, the code is still not visible within the src directory. Select the tab Navigator → Click with the right mouse button on the src directory within your project and choose refresh to make the code visible.
The folders of the source code will be visible as below.
Now you can compile run the code of all the quizzes and the examples of the book.
If you followed all the previous steps correctly, you can now compile and run the code of the quizzes.
|Sar Maroof is a professional software development teacher, gives master classes and publishes technical articles. He is also an expert software developer and worked for several big as well as small companies and later as a freelancer.|
Subscribe to Sar Maroof's RSS feeds!
Mail this page to a friend!
Bookmark this page!