Hogwarts School Of Computer Science
From Huben's Wiki
Line 77: | Line 77: | ||
This incantation is called a '''class''' because it has the magic word '''class''' in it. Muggles call thes magic words '''reserved words'''. | This incantation is called a '''class''' because it has the magic word '''class''' in it. Muggles call thes magic words '''reserved words'''. | ||
+ | |||
+ | There should be a program on your desktop called Dr. Java. | ||
+ | * Start Dr. Java. | ||
+ | * Cut and paste the incantation Banner.java into Dr. Java. | ||
+ | * Use the file menu to save it to your H drive. Don't change the name from Banner. | ||
+ | * Click "compile", then click "run". | ||
+ | * Enjoy the results! | ||
+ | |||
+ | Now we play with it. | ||
+ | * Look for numbers, and try to chnage them to make it run differently. You will need to compile and run to see your changes. | ||
+ | * What numbers do what? | ||
+ | * Bonus if you can find how to make it hop instead of smooth scrolling. | ||
+ | * Double bonus if you can do it the right way. |