Head First Java a brain-Friendly Guide Kathy Sierra and Bert Bates



Download 17,18 Mb.
Pdf ko'rish
bet90/90
Sana22.06.2022
Hajmi17,18 Mb.
#693704
1   ...   82   83   84   85   86   87   88   89   90
Bog'liq
(Head Up) Kathy Sierra Bert Bates - Head First Java, 3rd Edition Early Release-O\'Reilly Media, Inc. (2021)

Document Outline

  • 1. Dive in A Quick Dip: Breaking the Surface
    • The Way Java Works
    • What you’ll do in Java
    • A Very Brief History of Java
      • ">Speed and Memory Usage
      • ">Sharpen your pencil Answers
    • ">Code structure in Java
      • ">What goes in a source file?
      • ">What goes in a class?
      • ">What goes in a method?
    • ">Anatomy of a class
    • ">Writing a class with a main
    • ">What can you say in the main method?
      • ">Looping and looping and...
      • ">Simple boolean tests
    • ">There are no dumb Questions
    • ">Example of a while loop
    • ">Conditional branching
    • ">Coding a Serious Business Application
      • ">Monday Morning at Bob’s Java-Enabled House
    • ">Phrase-O-Matic
    • ">Code Magnets
      • ">BE the compiler
    • ">JavaCross 7.0
    • ">Pool Puzzle
    • ">Exercise Solutions
    • ">puzzle answers
  • ">2. Classes and Objects: A Trip to Objectville
    • ">Chair Wars
      • ">(or How Objects Can Change Your Life)
      • ">In Larry’s cube
      • ">At Brad’s laptop at the cafe
      • ">Larry thought he’d nailed it. He could almost feel the rolled steel of the Aeron beneath his...
      • ">Back in Larry’s cube
      • ">At Brad’s laptop at the beach
      • ">Larry snuck in just moments ahead of Brad.
      • ">Back in Larry’s cube
      • ">At Brad’s laptop on his lawn chair at the Telluride Bluegrass Festival
      • ">So, Brad the OO guy got the chair and desk, right?
    • ">What about the Amoeba rotate()?
    • ">The suspense is killing me. Who got the chair and desk?
      • ">Brain Power
    • ">When you design a class, think about the objects that will be created from that class t ype. Think about:
    • ">What’s the difference between a class and an object?
      • ">A class is not an object.
    • ">Making your first object
    • ">Making and testing Movie objects
    • ">Quick! Get out of main!
      • ">The Guessing Game
    • ">Running the Guessing Game
    • ">There are no Dumb Questions
      • ">BE the compiler
    • ">Code Magnets
      • ">Pool Puzzle
    • ?">Exercise Solutions
    • ?">Puzzle Solutions
      • ?">Pool Puzzle
      • ?">Who am I?
  • ?">3. Primitives And References: Know Your Variables
    • ?">Declaring a variable
      • ?">variables must have a type
      • ?">variables must have a name
    • ?">“I’d like a double mocha, no, make it an int.”
      • ?">Primitive Types
    • ?">You really don’t want to spill that...
    • ?">Back away from that keyword!
    • ?">Controlling your Dog object
    • ?">An object reference is just another variable value.
    • ?">There are no Dumb Questions
      • ?">Java Exposed
    • ?">Life on the garbage-collectible heap
      • ?">Life and death on the heap
      • ?">An array is like a tray of cups
      • ?">Arrays are objects too
      • ?">Make an array of Dogs
      • ?">Control your Dog
      • ?">What happens if the Dog is in a Dog array?
      • ?">A Dog example
      • ?">BE the compiler
      • ?">Code Magnets
    • ?">Pool Puzzle
    • ?">A Heap o’ Trouble
      • ?">The case of the pilfered references
    • ?">Exercise Solutions
    • ?">Puzzle Solutions
      • ?">The case of the pilfered references
  • ?">4. methods use instance variables: How Objects Behave
    • ?">Remember: a class describes what an object knows and what an object does
      • ?">Can every object of that type have different method behavior?
      • ?">The size affects the bark
      • ?">You can send things to a method
    • ?">You can get things back from a method.
    • ?">You can send more than one thing to a method
    • ?">There are no Dumb Questions
      • ?">Reminder: Java cares about type!
    • ?">Cool things you can do with parameters and return types
    • ?">Encapsulation
      • ?">Do it or risk humiliation and ridicule.
      • ?">Hide the data
    • ?">Java Exposed
    • ?">Encapsulating the GoodDog class
      • ?">How do objects in an array behave?
    • ?">Declaring and initializing instance variables
    • ?">The difference between instance and local variables
    • ?">There are no Dumb Questions
    • ?">Comparing variables (primitives or references)
      • ?">BE the compiler
    • ?">Mixed Messages
    • ?">Pool Puzzle
    • ?">Exercise Solutions
    • ?">Puzzle Solutions
  • ?">5. Writing a Program: Extra-Strength Methods
    • ?">Let’s build a Battleship-style game: “Sink a Startup”
    • ?">First, a high-level design
    • ?">The “Simple Startup Game” a gentler introduction
    • ?">Developing a Class
    • ?">Brain Power
    • ?">SimpleStartup class
    • ?">Writing the method implementations
      • ?">let’s write the real method code now, and get this puppy working.
    • ?">Writing test code for the SimpleStartup class
    • ?">There are no Dumb Questions
    • ?">The checkYourself() method
    • ?">Just the new stuff
    • ?">There are no Dumb Questions
    • ?">Final code for SimpleStartup and SimpleStartupTester
    • ?">Prepcode for the SimpleStartupGame class
    • ?">The game’s main() method
    • ?">random() and getUserInput()
    • ?">One last class: GameHelper
      • ?">Let’s play
      • ?">What’s this? A bug ?
    • ?">More about for loops
      • ?">Regular (non-enhanced) for loops
    • ?">Trips through a loop
      • ?">Difference between for and while
    • ?">The enhanced for loop
    • ?">Casting primitives
      • ?">BE the JVM
    • ?">Code Magnets
    • ?">JavaCross
      • ?">Mixed Messages
    • ?">Exercise Solutions
      • ?">Puzzle Solutions

Download 17,18 Mb.

Do'stlaringiz bilan baham:
1   ...   82   83   84   85   86   87   88   89   90




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