public class IntField extends TextField
{
public IntField();
public IntField(int size);
public void setInt(int number);
public int getInt();
}
public class DoubleField extends TextField
{
public DoubleField();
public DoubleField(int size);
public void setDouble(double num);
public Double getDouble();
}
Numbers.java,
Numbers.html
| <compound statement> | -> | {
| | | //a sequence of <statements>s
| | | each followed by a semicolon//
| | | }
| |
pigLatin = tail + firstL + "ay";
| <statement> | -> | <identifier> = <expression>; | |
| <statement> | -> | pigLatin = <expression>; | |
| <statement> | -> | pigLatin = <str expression>; | |
| <statement> | -> | pigLatin = <str expression> + <str expression>; | |
| <statement> | -> | pigLatin = tail + <str expression>; | |
| <statement> | -> | pigLatin = tail + <str expression> + <str expression>; | |
| <statement> | -> | pigLatin = tail + firstL + <str expression>; | |
| <statement> | -> | pigLatin = tail + firstL + "ay"; |