at-m42:lecture2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
at-m42:lecture2 [2009/04/09 16:07] – eechris | at-m42:lecture2 [2011/01/14 12:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 186: | Line 186: | ||
<code groovy> | <code groovy> | ||
def count = 0 // define and initialize | def count = 0 // define and initialize | ||
- | count = count = 1 // increase current value by one | + | count = count + 1 // increase current value by one |
</ | </ | ||
Line 194: | Line 194: | ||
Variables have names by which they can be referenced. These names are known as // | Variables have names by which they can be referenced. These names are known as // | ||
> //An identifier is a case-sensitive combination of letters and digits, the first of which must be a letter. The underscore character ('' | > //An identifier is a case-sensitive combination of letters and digits, the first of which must be a letter. The underscore character ('' | ||
+ | |||
===== Increment and Decrement Operators ===== | ===== Increment and Decrement Operators ===== | ||
//Unary operators// add one or delete one from the argument. | //Unary operators// add one or delete one from the argument. | ||
Line 495: | Line 496: | ||
<code groovy> | <code groovy> | ||
assert ' | assert ' | ||
- | assert ' | + | assert ' |
</ | </ | ||
* The method '' | * The method '' |
at-m42/lecture2.txt · Last modified: 2011/01/14 12:45 by 127.0.0.1