Notes on the book Java for Kids
This user comes from kidslike.info
Find other posts in the same category:

Long description

page numbers referring to pdf page number, not the page number printed on paper

page 16. The environment variables button is not highlighted. Here it is

page 17. I believe you have to restart the computer even if you are using a modern version of Windows.

page 18. There are spaces in the path. Just leave them as spaces.

page 21. The Hello World program.
You can get equivalent code here.
http://www.javacoffeebreak.com/java101/java101.html

Step one
do "javac filename.java" to (translate) compile your program (use your actual file's name)
If it compiles correctly, you will have a file with the name
"filename.class"
Make sure you remember the .java

Step two
do "java filename" to run the program.

make sure you are doing
"java filename"
not "java filename.class"

or you will get a class not defined error

If you get a class not defined error, see this page for another possible cause.
try http://www.tech-recipes.com/java_programming_tips826.html

Chapter 2 (ends on page 33)
page 23. You will have 4 or more eclipse choices. Go ahead and download eclipse classic. It's the one most often downloaded.

page 25. Click the x to close the welcome screen.

page 28. I found that the eclipse editor added the closing parthesis for me, but not the semicolon. I had to click on the + sign to see the error message.
Once (but not later) I didn't have a choice "Run". I did "Run last launched".

page 30. explains methods. This page is pretty well written.

page 31. This explanation of methods as being attached to objects with a dot is much easier to understand after a student has played with Alice. The student understands that fish.move means a fish can move.

Chapter 3 (page 34 to page 51)
page 34. Object-oriented programming means a programmer first decides what objects should be in the program. Again, this concep is easier to understand after a student has played with Alice.

Classes in Java can have methods and attributes.
Classes are objects (the ice skater)
methods are actions (move)
attributes are properties (color)

He uses a videogame as an example of a class.
A videogame can start, or stop.
A videogame can be expensive or cheap.

In this aspect Alice is better for explaining classes.
We can see a skater move. It's less easy to see a game start. It's less easy to see a game be expensive.

page 37. arithmetic operators
page 39. data types (float, boolean, etc.).. variable initialization. constants. naming rules.
page 41. creation of a pet

page 42. type in the methods. Eclipse does not make them for you.

page 42. the pet is created with 4 attributes, and 3 methods. The third method takes an argument. The third method also returns data.
When you type it in, note that the functions go before the closing parenthesis.
Note that each verb (sleep, eat, say) has round parentheses and curly parentheses.

page 43. I had named my first class "pet" not "Pet" so the code would not work until I fixed this. The file name Pet.java must also be capitalized

page 44. calling a function

page 45. inheritance

--Now we are going to take a break from this book for a while and work on programming Roblox.

Update: We've stopped working through this book. The simple graphics does not engage our child testers, who would much rather do Scratch or Alice or Greenfoot.
http://www.kidslike.info/computer_programming_educational_programming_la...


To see articles on the same topic, click the links below the name of the author at the top of this page.