The Knowledge Of Sauron's Minions
From Huben's Wiki
Line 1: | Line 1: | ||
+ | [[image:Rivendell.jpg]] | ||
+ | |||
Welcome to Rivendell! You have completed your stay at Hogwarts and have come here to study Java even further, to learn the dark secrets of Sauron. | Welcome to Rivendell! You have completed your stay at Hogwarts and have come here to study Java even further, to learn the dark secrets of Sauron. | ||
Line 27: | Line 29: | ||
} | } | ||
</pre> | </pre> | ||
− | There is only one method, main(), in this RingWraith class: the other statements at the beginning declare '''variables'''. The five variables here are the most frequently used sorts. | + | There is only one method, main(), in this RingWraith class: the other statements at the beginning declare '''variables'''. Variables are places where the program can remember information. You can think of them as like little boxes, or perhaps whiteboards where you can write and erase things you want to remember. The five variables here are the most frequently used sorts. |
There are many '''basic types''', but here we shall concern ourselves with only four. | There are many '''basic types''', but here we shall concern ourselves with only four. | ||
Line 49: | Line 51: | ||
# Brace-matching Color is tricky. How do you reveal it in the code? | # 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? | # 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'''. | + | # '''Keyword''' means the same as '''reserved word'''. Thou shalt prepare a litany (list) of these reserved words for the purposes of further study. |
# The basic types are also reserved words: what else then should we add to our list of reserved words? | # 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? | # Why shouldn't we add String to the reserved words? |