In just 21 days, you can acquire the knowledge and skills necessary to develop three kinds of programs with Java: applications on your computer, servlets on a Web server, and applets on the Web.
No previous programming experience required. By following the 21 carefully organized lessons in this book, anyone can learn the basics of Java programming.
Learn at your own pace. You can work through each chapter sequentially to make sure you thoroughly understand all of the concepts and methodologies, or you can focus on specific lessons to learn the techniques that interest you most.
Test your knowledge. Each chapter ends with a Workshop section filled with questions, answers, and exercises for further study. There are even certification practice questions.
About the Author
Laura Lemay is one of the world's most popular authors on Web development topics. She is the author of the bestselling Sams Teach Yourself Web Publishing with HTML, as well as Sams Teach Yourself Perl in 21 Days. She is also the series editor for the Laura Lemay's Web Workshop series.
Rogers Cadenhead is the author of Sams Teach Yourself Java 2 in 24 Hours and coauthor of Sams Teach Yourself SunSoft Java Workshop in 21 Days and Java Unleashed. He also writes a question-and-answer trivia column for the Fort Worth Star-Telegram, Knight-Ridder News Service, and New York Times Syndicate
Table of Contents
|Week 1||The Java Language||7|
|Day 1||Getting Started with Java||9|
|Day 2||The ABCs of Programming||35|
|Day 3||Working with Objects||63|
|Day 4||Lists, Logic, and Loops||87|
|Day 5||Creating Classes and Methods||113|
|Day 6||Packages, Interfaces, and Other Class Features||143|
|Day 7||Threads, Exceptions, and Assertions||181|
|Week 2||The Java Class Library||215|
|Day 8||Data Structures||217|
|Day 9||Working with Swing||245|
|Day 10||Building a Swing Interface||271|
|Day 11||Arranging Components on a User Interface||299|
|Day 12||Responding to User Input||329|
|Day 13||Using Color, Fonts, and Graphics||351|
|Day 14||Writing Java Applets and Java Web Start Applications||375|
|Week 3||Java Programming||411|
|Day 15||Working with Input and Output||413|
|Day 16||Serializing and Examining Objects||441|
|Day 17||Communicating Across the Internet||469|
|Day 19||Creating and Using JavaBeans||521|
|Day 20||Reading and Writing Data Using JDBC and XML||543|
|Day 21||Writing Java Servlets and JavaServer Pages||585|
|Appendix A||Choosing Java||631|
|Appendix B||Using the Java 2 Software Development Kit||643|
|Appendix C||Programming with the Java 2 Software Development Kit||667|
|Appendix D||Using the NetBeans Integrated Development Environment||689|
|Appendix E||Writing Java 1.1 Applets||699|
|Appendix F||Creating Web Services with XML-RPC||721|
|Appendix G||Regular Expressions||739|
|Appendix H||Where to Go from Here: Java Resources||753|
|Appendix I||This Book's Web Site||759|