Sams Teach Yourself Java™ in 24 Hours (Covering Java 7 and Android)

(singke) #1

Table of Contents


PART I:Getting Started


HOUR 4:Understanding How Java Programs


PART II: Learning the Basics of
Programming

HOUR 5: Storing and Changing Information in


HOUR 7: Using Conditional Tests to Make



  • ptg

  • ptg

  • INTRODUCTION

  • Choosing a Language.................................... HOUR 1:Becoming a Programmer

  • Te l l i n g t h e C o m p u t e r W h a t t o D o......................

  • How Programs Work......................................

  • When Programs Don’t Work............................

  • Choosing a Java Programming Tool..................

  • Installing a Java Development Tool..................

  • What You Need to Write Programs.................. HOUR 2:Writing Your First Program

  • Creating the SalutonProgram......................

  • Beginning the Program................................

  • Storing Information in a Variable....................

  • Saving the Finished Product..........................

  • Compiling the Program into a Class File..........

  • Fixing Errors................................................

  • Running a Java Program..............................

  • First Stop: Oracle........................................ HOUR 3:Vacationing in Java

  • Going to School with Java............................

  • Lunch in JavaWorld......................................

  • Watching the Skies at NASA..........................

  • Getting Down to Business............................

  • Stopping by Java Boutique for Directions........

  • Running Java on Your Phone..........................

  • Creating an Application................................ Work

  • Sending Arguments to Applications................

  • Creating an Applet......................................

  • Statements and Expressions........................ a Program

  • Assigning Variable Types..............................

  • Naming Your Variables..................................

  • Storing Information in Variables....................

  • All About Operators......................................

  • Using Expressions......................................

  • Storing Text in Strings.................................. HOUR 6: Using Strings to Communicate

  • Displaying Strings in Programs......................

  • Using Special Characters in Strings................

  • Pasting Strings Together..............................

  • Using Other Variables with Strings..................

  • Advanced String Handling............................

  • Presenting Credits......................................

  • ifStatements............................................ Decisions

  • if-elseStatements....................................

  • switchStatements......................................

  • The Conditional Operator..............................

  • Watching the Clock......................................

  • forLoops.................................................. HOUR 8: Repeating an Action with Loops

  • whileLoops

  • do-whileLoops..........................................

  • Exiting a Loop..........................................

  • Naming a Loop..........................................

  • Te s t i n g Yo u r C o m p u t e r S p e e d......................

Free download pdf