Hogwarts School Of Computer Science
From Huben's Wiki
Line 81: | Line 81: | ||
* Start Dr. Java. | * Start Dr. Java. | ||
* Cut and paste the incantation Banner.java into 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. | + | * Use the file menu to save it to your H drive. Don't change the name from Banner. Dr. Java automatically knows what to call the file: you just tell it what folder. |
* Use the Edit/Preferences menu to check the "Show All Line Numbers" box. Go "oooo, ahhhhhhh!" | * Use the Edit/Preferences menu to check the "Show All Line Numbers" box. Go "oooo, ahhhhhhh!" | ||
* Click "compile", then click "run". | * Click "compile", then click "run". | ||
Line 137: | Line 137: | ||
This incantation has not followed the rules of the curly braces, but will still work. | This incantation has not followed the rules of the curly braces, but will still work. | ||
+ | |||
+ | * Cut and paste it into Dr. Java, and save it. | ||
+ | * Run it: it should work. | ||
+ | * Now indent it properly so that it looks like Banner.java above. | ||
+ | * Run it: it should work. | ||
+ | * What does that tell us about spaces in these incantations? |