— Scott McNealy, Sun Microsystems Chairman, President and ceo



Download 40,57 Mb.
Pdf ko'rish
bet159/555
Sana26.05.2022
Hajmi40,57 Mb.
#609235
1   ...   155   156   157   158   159   160   161   162   ...   555
Bog'liq
Head First Java (Kathy Sierra, Bert Bates) (z-lib.org)

162
 
chapter 6
JavaCross 7.0
How does this crossword puzzle help you learn 
Java? Well, all of the words are Java related 
(except one red herring).
Hint: When in doubt, remember ArrayList.
Down
2. Where the Java action is.
3. Addressable unit
4. 2nd smallest
5. Fractional default
8. Library’s grandest
10. Must be low density
11. He’s in there somewhere
15. As if
16. dearth method
18. What shopping and arrays have in common
20. Library acronym
21. What goes around
17
24
12
8
21
16
11
19
22
18
13
10
15
2
23
9
3
1
6
14
5
4
20
Across
1. I can’t behave
6. Or, in the courtroom
7. Where it’s at baby
9. A fork’s origin
12. Grow an ArrayList
13. Wholly massive
14. Value copy
16. Not an object
17. An array on steroids
19. Extent
21. 19’s counterpart
22. Spanish geek snacks (Note: This has 
nothing to do with Java.) 
23. For lazy fingers
24. Where packages roam
7
More Hints:
Acr
oss 
Do
wn
1. 8 v
arieties 
2. W
hat’s o
ver
ridable?
7. T
hink Arr
ayList 
3. T
hink Arr
ayList
16. C
ommon primitiv

4. & 10.
Primitiv
e
21. A
rra
y’s e
xten

16. T
hink Arr
ayList
22. N
ot about Ja
va - S
panish appetiz
ers 
18. H
e’s mak
ing a ______
puzzle: 
crossword


get to know the 
Java API 
you are here
4
163
File Edit Window Help Dance
% java ArrayListMagnet
zero one two three
zero one three four
zero one three four 4.2
zero one three four 4.2
Exercise Solutions
if (a.contains(“three”)) {
a.add(“four”);
}
import java.util.*;
public class ArrayListMagnet {
ArrayList a = new ArrayList();
 public static void main (String[] args) {
a.add(0,”zero”);
a.add(1,”one”);
 a.add(2,”two”);
a.add(3,”three”);
printAL(a);
a.remove(2);
if (a.indexOf(“four”) != 4) {
a.add(4, “4.2”);
}
if (a.contains(“two”)) {
a.add(“2.2”);
}
 public static void printAL(ArrayList al) {
for (String element : al) {
System.out.print(element + “ “);
}
System.out.println(“ “);
}
}
}
printAL(a);
printAL(a);
printAL(a);


164
 
chapter 6
17
24
12
8
21
16
11
19
22
18
13
10
15
2
23
9
3
1
6
14
5
4
20
7
P R I M I T I V E S
D E L H
O B J E C T I N D E X O F
U H M R
B P O I F E T C
L A D D L O N G O
G E T C O T N
K V A I N T
A R R A Y L I S T L S A
G R S I Z E I
A L E N G T H S M N
P O U T A P A S
I M P O R T A T
P L I B R A R Y
JavaCross 
answers
Sharpen your pencil
Down
2. ___________________________________
3. ___________________________________
4. ___________________________________
5. ___________________________________
8. ___________________________________
10. ___________________________________
11. ___________________________________
15. ___________________________________
16. ___________________________________
18. ___________________________________
20. ___________________________________
21. ___________________________________
Across
1. ___________________________________
6. ___________________________________
7. ___________________________________
9. ___________________________________
12. ___________________________________
13. ___________________________________
14. ___________________________________
16. ___________________________________
17. ___________________________________
19. ___________________________________
21. ___________________________________
22. ___________________________________
23. ___________________________________
24. ___________________________________
Write your OWN set of clues! Look at each word, and try to 
write your own clues. Try making them easier, or harder, or 
more technical than the ones we have.

Download 40,57 Mb.

Do'stlaringiz bilan baham:
1   ...   155   156   157   158   159   160   161   162   ...   555




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish