Mutator Methods. . . . . . . . . . . . . . . . . . . . . . . . . 340 Special Object Reference This. . . . . . . . . . . . . . 341 Finishing the Class. . . . . . . . . . . . . . . . . . . . . . . . 344 Section 12.3 Graphical Classes. . . . . .348 Brief Introduction to Inheritance . . . . . . . . . . . 348 Graphical Object Construction. . . . . . . . . . . . . 350 Chapter 12 Review and Assessment . . . 356 Chapter 13 Working with Arrays . . . . . . . . . . . . .360 Section 13.1 Introduction to Arrays . . .362 Creating Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . 362 Accessing Array Elements . . . . . . . . . . . . . . . . . 364 Section 13.2 Processing Arrays . . . . .367 Processing Arrays Element-by-Element . . . . . 367 Graphing an Array. . . . . . . . . . . . . . . . . . . . . . . . 371 Processing Arrays of Objects. . . . . . . . . . . . . . . 376 Section 13.3 Searching Arrays . . . . . .384 Searching an Unsorted Array . . . . . . . . . . . . . . 384 Searching a Sorted Array . . . . . . . . . . . . . . . . . . 387 Chapter 13 Review and Assessment . . . 391 Chapter 14 Graphical User Interface . . . . . . . . . . . . . . .394 Section 14.1 JavaFX Graphical User Interfaces . . . . . . . . . . . . . .396 Effective GUI Applications. . . . . . . . . . . . . . . . . 396 Using JavaFX UI Controls . . . . . . . . . . . . . . . . . 398 Section 14.2 GUI Input. . . . . . . . . . .404 Text Fields and Layout Controls . . . . . . . . . . . . 404 Radio Buttons and Check Boxes . . . . . . . . . . . . 407 Multimedia Files. . . . . . . . . . . . . . . . . . . . . . . . . . 414 Section 14.3 JavaFX Games . . . . . . . . 419 Design the Game . . . . . . . . . . . . . . . . . . . . . . . . . 419 Design the Program. . . . . . . . . . . . . . . . . . . . . . . 419 Implement the Design in Code . . . . . . . . . . . . . 423 Chapter 14 Review and Assessment . . . 433 Chapter 15 Careers in Computer Programming. . . . . . . . . . . . .436 Section 15.1 Benefits of Careers in Coding . . . . . . . . . . . . . . . . . .438 Discussion of Benefits. . . . . . . . . . . . . . . . . . . . . 438 Programming Languages to Know . . . . . . . . . . 441 Section 15.2 Preparation for Careers in Coding . . . . . . . . . . . . . . . . . .443 Career Plan for IT . . . . . . . . . . . . . . . . . . . . . . . . 443 Résumé and Portfolio . . . . . . . . . . . . . . . . . . . . . 448 Chapter 15 Review and Assessment . . .454 Chapter 16 Computing and Society . . . . . . . . . . . . .456 Section 16.1 Computing and Ethics . . .458 Ethical Responsibilities . . . . . . . . . . . . . . . . . . . . 458 Current and Future Issues of Data Privacy . . . 463 Section 16.2 Computing and Security . . . . . . . . . . . . . . . .465 Analyzing Threats . . . . . . . . . . . . . . . . . . . . . . . . 465 Protecting Data. . . . . . . . . . . . . . . . . . . . . . . . . . . 468 Section 16.3 Safe Computing. . . . . . . 470 Determining Reliable Websites . . . . . . . . . . . . . 470 Be Social Media Savvy. . . . . . . . . . . . . . . . . . . . . 471 Chapter 16 Review and Assessment . . . 475 Appendix A Installing Java . . . . . . . . . . . . .479 Appendix B Formatting Output . . . . . . . . . .485 Appendix C Responding to Java Error Messages . . . . . . . . . . . . . . . . . . . . . . .487 Appendix D Using Turtle Graphics. . . . . . . . .491 Glossary. . . . . . . . . . . . . . . . . . . . . . . . . . .493 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . .501 xv
Previous Page Next Page