Sams Teach Yourself Java 2 in 24 Hours
- Table of Contents
- Copyright
- About the Author
- About the Technical Editor
- Acknowledgments
- We Want to Hear from You!
- Reader Services
- Introduction
- Hour 1. Becoming a Programmer
- Choosing a Language
- Telling the Computer What to Do
- How Programs Work
- How Programs Don't Work
- Next Stop: Java
- Workshop: Installing a Java Development Tool
- Summary
- Q&A
- Quiz
- Activities
- Hour 2. Writing Your First Program
- Hour 3. Vacationing in Java
- Hour 4. Understanding How Java Programs Work
- Part II: Learning the Basics of Programming
- Hour 5. Storing and Changing Information in a Program
- Hour 6. Using Strings to Communicate
- Hour 7. Using Conditional Tests to Make Decisions
- Hour 8. Repeating an Action with Loops
- Part III: Working with Information in New Ways
- Hour 9. Storing Information with Arrays
- Hour 10. Creating Your First Object
- Hour 11. Describing What Your Object Is Like
- Hour 12. Making the Most of Existing Objects
- Part IV: Programming a Graphical User Interface
- Hour 13. Building a Simple User Interface
- Hour 14. Laying Out a User Interface
- Hour 15. Responding to User Input
- Hour 16. Building a Complex User Interface
- Part V: Creating Multimedia Programs
- Hour 17. Creating Interactive Web Programs
- Hour 18. Handling Errors in a Program
- Hour 19. Creating a Threaded Program
- Hour 20. Reading and Writing Files
- Part VI: Creating Multimedia Programs
- Hour 21. Using Fonts and Color
- Hour 22. Playing Sound Files
- Hour 23. Working with Graphics
- Hour 24. Creating Animation
- Part VII: Appendixes
- Appendix A. Tackling New Features of Java 2 Version 1.4
- Appendix B. Using the Java 2 Software Development Kit
- Appendix C. Programming with the Java 2 Software Development Kit
- Appendix D. Using Sun ONE Studio
- Appendix E. Where to Go from Here: Java Resources
- Appendix F. This Book's Web Site
Workshop: Installing a Java Development Tool
Every hour of this book ends with a workshop, a Java programming project you can undertake to enhance your knowledge of the subject matter while it is percolating in your brain.
However, you won't be doing any Java programming at all until you install a Java development tool on your computer.
If you have a program such as Borland JBuilder, IntelliJ IDEA, Sun ONE Studio, or MetroWerks CodeWarrior, you can use that to develop the tutorial programs in the next 23 hours. However, you should already have some familiarity with how to use the program—learning to use Java and a complex development tool at the same time can be daunting.
If you don't have a Java development tool, or the last paragraph scared you away from using one that you own, you can use the Java 2 Software Development Kit, which is available for free from Sun's Java Web site at http://java.sun.com.
Though the process is relatively straightforward, there are some configuration issues that cause problems for many people trying to get started with the kit, especially on a Windows system. To find out how to download and install the kit and fix any configuration problems that arise, read Appendix B, "Using the Java 2 Software Development Kit."
Summary | Next Section

Account Sign In
View your cart