1 2 3 4

advertisement
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Add line numbers
Do one of the following:
Add line numbers to an entire document
1.
On the File menu, click Page Setup, and then click the Layout tab.
2.
In the Apply to box, click Whole document.
3.
Click Line Numbers.
4.
Select the Add line numbering check box, and then select the options you want.
Add line numbers to a selection of text
1.
Select the text you want to number.
2.
On the File menu, click Page Setup, and then click the Layout tab.
3.
In the Apply to box, click Selected text.
Microsoft Word will add page breaks before and after the numbered lines.
4.
Click Line Numbers.
5.
Select the Add line numbering check box, and then select the options you want.
Add line numbers to a section
1.
Click in a section or select multiple sections.
2.
On the File menu, click Page Setup, and then click the Layout tab.
3.
In the Apply to box, select the option you want.
Microsoft Word will add page breaks before and after the numbered lines.
4.
Click Line Numbers.
5.
Select the Add line numbering check box, and then select the options you want.
Note To see the line numbers, switch to print layout view.
package javacalc;
public class Scanner {
public Scanner () {
super ();
}
javacalc.CalculatorInterface in;
void setInterface (javacalc.CalculatorInterface i) {
this.in = i;
}
javacalc.Token nextToken () throws javacalc.CalculateException{
char c = this.in.getChar();
while (c != 0 && java.lang.Character.isWhitespace (c)) {
c = this.in.getChar();
}
if (java.lang.Character.isDigit (c)) {
int value = c - '0';
c = this.in.peek();
while (java.lang.Character.isDigit (c)) {
value = value * 10 + (this.in.getChar() - '0');
c = this.in.peek();
}
return new javacalc.Token(javacalc.Token.NUMBER, value);
}
switch (c) {
case 0:
return null;
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
case '+':
case '-':
return new javacalc.Token(javacalc.Token.OPERATOR, c);
default:
throw new javacalc.ScanException();
}
}
}
class ScanException extends javacalc.CalculateException {
ScanException () {
super ();
}
}
Download