Code Using Java Fun coding activities for absolute beginners (Kids Coding Workbook Book 2).pdf

(3260 KB) Pobierz
Kids Coding Workbook
Code
By: Troy Tuckett
Using Java
Fun activities for absolute beginners
Kid’s Coding Workbook
Series
Code Using Java
First Edition Revision 2
By Troy Tuckett
Copyright
Ó
2018 by Troy Tuckett, All rights reserved.
Printed in the United States of America
Java is a product licensed through Oracle Corporation. IntelliJ IDEA is a product licensed through
jetbrains.com
ISBN: 9781791550820
Other Books by the Author
Today you can find these additional Kids Coding Workbooks on Amazon.com
Kids Coding Workbook Using Scratch (paperback and kindle versions)
Kids Coding Workbook Using Python (paperback and kindle versions)
Kids Coding Workbook Using Pseudo Code (paperback and kindle versions)
Kids Coding Workbook – Create Games Using Scratch (paperback and kindle versions)
I
NTRODUCTION
For Parents…
This workbook was written after decades of teaching beginners coding skills. It is meant to teach
key principles and cement them in the minds of kids using fun and exciting exercises.
The workbook was created to promote self-paced learning, but it can also be used in a classroom
setting. It has two main elements that work together to help kids learn coding. “Learn It!” sections
teach a principle in detail and provide examples that are useful to learning the topic. “Try It!”
sections then use fun exercises and games to reinforce the learning in the prior section.
For Kids…
It has been my experience that kids learn best when coding concepts are visual and you take the
time to use your hands and code what you have learned. I strongly encourage you to go through
the examples and exercises using Scratch and you are reading this workbook. Doing this will help
you to better retain what you have learned.
What do you need to know to start?
I am assuming in this book that you have little or no knowledge of coding and no knowledge of
Java. I provide every step you need to get started and learn the language.
Because there are some download and install steps, some computer skills and understanding of
folders and windows will be helpful. If you don’t have them, have a parent help you.
Learn It!
Getting Started with Java
Java is a general-purpose language that is very popular in business. Because of its popularity, it is
a great language to learn.
Before you write a program using Java you will need to have the proper software installed. This
includes installing an Integrated Development Environment (IDE). A common environment that
supports a variety of operating systems is called IntelliJ IDEA. We will be using the Community
edition because it installs easy and is free to use.
Here are the steps to get the IDE installed and a short program written.
Begin by going to
https://www.jetbrains.com/idea/download/
and selecting “Download” under the
Community heading. Once the file is downloaded, click on the install file and follow the install
process.
Once the product is installed, find the installed program and double click to run it.
The first time running the program, it might require you
answer some questions about where to store files and
such. After that, you will end up at the welcome page.
Select “Create New Product” from the welcome page.
Select “Java” from the different types of projects and click
.
Name your project. I called mine “Stuff” but you can call yours what you like.
With the project created, Select the project folder in the upper left.
From the project tree select the name of your project (“Stuff” for me) and then right
click “src” and choose “New” and “Java Class”.
Zgłoś jeśli naruszono regulamin