作者:Herbert Schildt
出版日期:November 5, 2007
出版社:McGraw-Hill
页数:524
ISBN:ISBN-10: 0072263156 ISBN-13: 978-0072263152
文件格式:PDF
Product Description
Your Ultimate “How-To” Guide to Java Programming!
Legendary programming author Herb Schildt shares some of hisfavorite programming techniques in this high-powered Java “cookbook.”Organized for quick reference, each recipe shows how to accomplish apractical programming task. A recipe begins with a list of keyingredients (the classes, methods, and interfaces) followed bystep-by-step instructions that show how to assemble them into acomplete solution. Detailed discussions explain the how and why behindeach step, and a full code example puts the recipe into action. Eachrecipe ends with a list of options and alternatives that suggest waysto adapt the technique to fit a variety of situations. Whether you’re abeginner or an experienced pro, you’ll find recipes that are sure tosatisfy your Java programming appetite!
Topics include:
String HandlingRegular ExpressionsFile HandlingAppletsServletsSwingThe Collections FrameworkMultithreadingFormatting DataLearn how to:
Find substrings that match a regular expressionUse regular expressions to tokenize a stringCompress and decompress data filesCreate a ZIP fileFormat time and dateUse printf( ) to display formatted dataReverse, rotate, and shuffle a listUse a Comparator with a collectionCreate a simple Swing applicationCreate a Swing-based appletCreate a simple servletUse a cookie with a servletSynchronize threadsMonitor a thread’s stateSet and obtain a thread’s priorityUse JScrollPane to automate scrollingAccess a resource using HttpURLConnection Schedule a task for future executionUse reflection to dynamically create an object and call methodsMuch, much moreAbout the Author
Herb Schildt is a leading authority onJava, C, C++, and C#, and is a master Windows programmer. Herb’sprogramming books have sold more than 3.5 million copies worldwide andhave been translated into all major foreign languages. He is the authorof numerous bestsellers on Java, including Java: The Complete Reference, Java: A Beginner’s Guide, and Swing: A Beginner’s Guide.