The Knowledge Of Sauron's Minions
From Huben's Wiki
(→Further Revellations) |
(→Further Revellations) |
||
Line 43: | Line 43: | ||
==Further Revellations== | ==Further Revellations== | ||
− | + | # Trap the RingWraith code within Dr. Java. | |
− | + | # Note the different colors of the code. What could they signify? | |
− | + | # Pull down the Dr. Java menu and select Preferences. In the Categories section, select Display Options and then Colors. | |
− | + | # Make a note in your own words of what each color (from Normal Color to Brace-matching Color) designates in the code and kinds of locations it is in. | |
− | + | # Brace-matching Color is tricky. How do you reveal it in the code? | |
− | + | # I can hardly see the Type Color in the code. Click the ellipsis (...) button to the right of Type Color, and change the color to a dark red. Click Apply and OK. More visible now? | |
− | + | # '''Keyword''' means the same as '''reserved word'''. We have one of these magic words posted on high: which others should we add now? | |
− | + | # The basic types are also reserved words: what else then should we add to our list of reserved words? | |
− | + | # Why shouldn't we add String to the reserved words? | |
− | + | # Look at the variable names. What pattern of capitalization do you observe? | |
− | + | # Each of the variables is SET with a value. These written values are called '''literal constants'''. | |
− | + | # The exception is boolean: '''true''' and '''false''' are reserved words. | |
==The Arcane Knowledge== | ==The Arcane Knowledge== |