Java Reference
In-Depth Information
(k)
11.0
(l)
102.0
(m)
17.0
(n)
20.0
(o)
13.0
(p)
14.0
11.
3 0
1 2 4
4 3
5 2 4
8 1
5 9 4
12.
public static int min(int n1, int n2, int n3) {
return Math.min(n1, Math.min(n2, n3));
}
13.
public static int countQuarters(int cents) {
return cents % 100 / 25;
}
14.
(a)
6
(b)
19
(c)
"q.e.d."
(d)
"ARCTURAN MEGADONKEY"
(e)
"E."
(f)
"egad"
(g)
4
(h)
1
(i)
13
(j)
-1
(k)
"Arcturan Megadonkeys"
(l)
"b"
(m)
"Cyber"
(n)
"mega Corp"
15.
quote.substring(5, 10).toUpperCase()
quote.toLowerCase().substring(0, 4) + quote.substring(20, 26)
16.
There are 10 tokens:
•
Hello
•
there.
•
1+2
•
is
•
3
•
and
Search WWH ::
Custom Search