From ggc
|
1 packagepackage is used to name the directory or folder a class is in intermediate;
2
3 publicpublic is used to indicate unrestricted access (any other class can have access) classclass is a group of fields and methods used for making objects MeanGreeter implementsimplements means providing method bodies for the methods declared in the corresponding interface GreeterInterface
4 {open braces start code blocks and must be matched with a close brace
5 publicpublic is used to indicate unrestricted access (any other class can have access) String getGreeting()
6 {open braces start code blocks and must be matched with a close brace
7 returnreturn means to provide the result of the method and/or cease execution of the method immediately "I hate you. Go away!";
8 }close braces end code blocks and must match an earlier open brace
9 }close braces end code blocks and must match an earlier open brace
|
Download/View intermediate/MeanGreeter.java