1 | Also, because there is only one expression in the method body, we drop the braces and put the entire method definition on one line. | |
2 | Use the +, -, *, / symbols and parentheses to do a simple equation. | |
3 | Well, the bracket notation means you can index into this variable. | |
4 | The curly braces ensure that everything is logically clustered where it should be. | |
5 | Note that each argument list is surrounded by parentheses and the arguments are separated by commas. |