— Scott McNealy, Sun Microsystems Chairman, President and ceo



Download 40,57 Mb.
Pdf ko'rish
bet120/555
Sana26.05.2022
Hajmi40,57 Mb.
#609235
1   ...   116   117   118   119   120   121   122   123   ...   555
Bog'liq
Head First Java (Kathy Sierra, Bert Bates) (z-lib.org)

real code
 prep code
Prepcode for the SimpleDotComGame class
Everything happens in main()
There are some things you’ll have to take on faith. For example, we have one 
line of prepcode that says, “GET user input from command-line”. Let me tell 
you, that’s a little more than we want to implement from scratch right now. But 
happily, we’re using OO. And that means you get to ask some other class/object 
to do something for you, without worrying about how it does it. When you write 
prepcode, you should assume that somehow you’ll be able to do whatever you 
need to do, so you can put all your brainpower into working out the logic. 
metacognitive tip
Don’t work one part of the brain for too long a stretch at one time. 
Working just the left side of the brain for more than 30 minutes 
is like working just your left arm for 30 minutes. Give each side 
of your brain a break by switching sides at regular intervals. 
When you shift to one side, the other side gets to rest and 
recover. Left-brain activities include things like step-by-step 
sequences, logical problem-solving, and analysis, while the 
right-brain kicks in for metaphors, creative problem-solving, 
pattern-matching, and visualizing.
SimpleDotCom 
class 


you are here
4
writing 

program
109
How many 
hits did you get 
last month?
Including 
repeat visitors?
Yes...
3
 BULLET POINTS
ß
Your Java program should start with a high-
level design.
ß
Typically you’ll write three things when you 
create a new class: 
prepcode
 


Download 40,57 Mb.

Do'stlaringiz bilan baham:
1   ...   116   117   118   119   120   121   122   123   ...   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