Herb Schildt's Java Programming Cookbook


Book Description

Your Ultimate "How-To" Guide to Java Programming! Legendary programming author Herb Schildt shares some of his favorite programming techniques in this high-powered Java "cookbook." Organized for quick reference, each recipe shows how to accomplish a practical programming task. A recipe begins with a list of key ingredients (the classes, methods, and interfaces) followed by step-by-step instructions that show how to assemble them into a complete solution. Detailed discussions explain the how and why behind each step, and a full code example puts the recipe into action. Each recipe ends with a list of options and alternatives that suggest ways to adapt the technique to fit a variety of situations. Whether you're a beginner or an experienced pro, you'll find recipes that are sure to satisfy your Java programming appetite! Topics include: String Handling Regular Expressions File Handling Applets Servlets Swing The Collections Framework Multithreading Formatting Data Learn how to: Find substrings that match a regular expression Use regular expressions to tokenize a string Compress and decompress data files Create a ZIP file Format time and date Use printf( ) to display formatted data Reverse, rotate, and shuffle a list Use a Comparator with a collection Create a simple Swing application Create a Swing-based applet Create a simple servlet Use a cookie with a servlet Synchronize threads Monitor a thread's state Set and obtain a thread's priority Use JScrollPane to automate scrolling Access a resource using HttpURLConnection Schedule a task for future execution Use reflection to dynamically create an object and call methods Much, much more




Herb Schildt's C++ Programming Cookbook


Book Description

Your Ultimate "How-To" Guide to C++ Programming! Legendary programming author Herb Schildt shares some of his favorite programming techniques in this high-powered C++ "cookbook." Organized for quick reference, each "recipe" shows how to accomplish a practical programming task. A recipe begins with a list of key ingredients (classes, functions, and headers) followed by step-by-step instructions that show how to assemble them into a complete solution. Detailed discussions explain the how and why behind each step, and a full code example puts the recipe into action. Each recipe ends with a list of options and alternatives that suggest ways to adapt the technique to fit a variety of situations. Whether you're a beginner or an experienced pro, you'll find recipes that are sure to satisfy your C++ programming appetite! Topics include: String Handling · Standard Template Library (STL) Containers · Algorithms · Function Objects · Binders · Negators · Adaptors · Iterators · I/O · Formatting Data Learn how to: Tokenize a null-terminated string Create a search and replace function for strings Implement subtraction for string objects Use the vector, deque, and list sequence containers Use the container adaptors stack, queue, and priority_queue Use the map, multimap, set, and multiset associative containers Reverse, rotate, and shuffle a sequence Create a function object Use binders, negators, and iterator adapters Read and write files Use stream iterators to handle file I/O Use exceptions to handle I/O errors Create custom inserters and extractors Format date, time, and numeric data Use facets and the localization library Overload the [ ], ( ), and -> operators Create an explicit constructor And much, much more




Java Programming: A Comprehensive Introduction


Book Description

Java Programming: A Comprehensive Introduction is designed for an introductory programming course using Java. This text takes a logical approach to the presentation of core topics, moving step-by-step from the basics to more advanced material, with objects being introduced at the appropriate time. The book is divided into three parts: Part One covers the elements of the Java language and the fundamentals of programming. An introduction to object-oriented design is also included. Part Two introduces GUI (Graphical User Interface) programming using Swing. Part Three explores key aspects of Java's API (Application Programming Interface) library, including the Collections Framework and the concurrency API. Herb Schildt has written many successful programming books in Java, C++, C, and C#. His books have sold more than three million copies. Dale Skrien is a professor at Colby College with degrees from the University of Illinois-Champaign, the University of Washington, and St. Olaf College. He's also authored two books and is very active in SIGCSE.




Java 2: The Complete Reference, Fifth Edition


Book Description

This book is the most complete and up-to-date resource on Java from programming guru, Herb Schildt -- a must-have desk reference for every Java programmer.




Java: A Beginner's Guide, Eighth Edition


Book Description

A practical introduction to Java programming—fully revised for long-term support release Java SE 11Thoroughly updated for Java Platform Standard Edition 11, this hands-on resource shows, step by step, how to get started programming in Java from the very first chapter. Written by Java guru Herbert Schildt, the book starts with the basics, such as how to create, compile, and run a Java program. From there, you will learn essential Java keywords, syntax, and commands. Java: A Beginner's Guide, Eighth Edition covers the basics and touches on advanced features, including multithreaded programming, generics, Lambda expressions, and Swing. Enumeration, modules, and interface methods are also clearly explained. This Oracle Press guide delivers the appropriate mix of theory and practical coding necessary to get you up and running developing Java applications in no time.•Clearly explains all of the new Java SE 11 features•Features self-tests, exercises, and downloadable code samples•Written by bestselling author and leading Java authority Herbert Schildt




Java: The Complete Reference, Twelfth Edition


Book Description

The Definitive Java Programming Guide Fully updated for Java SE 17, JavaTM: The Complete Reference, Twelfth Edition explains how to develop, compile, debug, and run Java programs. Best-selling programming author Herb Schildt covers the entire Java language, including its syntax, keywords, and fundamental programming principles. You’ll also find information on key portions of the Java API library, such as I/O, the Collections Framework, the stream library, and the concurrency utilities. Swing, JavaBeans, and servlets are examined, and numerous examples demonstrate Java in action. Of course, recent additions to the Java language, such as records, sealed classes, and switch expressions are discussed in detail. Best of all, the book is written in the clear, crisp, uncompromising style that has made Schildt the choice of millions worldwide. Coverage includes: Data types, variables, arrays, and operators Control statements Classes, objects, and methods Method overloading and overriding Inheritance Interfaces and packages Exception handling Multithreaded programming Enumerations, autoboxing, and annotations The I/O classes Generics Lambda expressions Modules Records Sealed classes Text blocks switch expressions Pattern matching with instanceof String handling The Collections Framework Networking Event handling AWT Swing The Concurrent API The Stream API Regular expressions JavaBeans Servlets Much, much more




Java: The Complete Reference, Eleventh Edition


Book Description

The Definitive Java Programming GuideFully updated for Java SE 11, Java: The Complete Reference, Eleventh Edition explains how to develop, compile, debug, and run Java programs. Best-selling programming author Herb Schildt covers the entire Java language, including its syntax, keywords, and fundamental programming principles. You’ll also find information on key portions of the Java API library, such as I/O, the Collections Framework, the stream library, and the concurrency utilities. Swing, JavaBeans, and servlets are examined and numerous examples demonstrate Java in action. Of course, the very important module system is discussed in detail. This Oracle Press resource also offers an introduction to JShell, Java’s interactive programming tool. Best of all, the book is written in the clear, crisp, uncompromising style that has made Schildt the choice of millions worldwide.Coverage includes:•Data types, variables, arrays, and operators•Control statements•Classes, objects, and methods•Method overloading and overriding•Inheritance•Local variable type inference•Interfaces and packages•Exception handling•Multithreaded programming•Enumerations, autoboxing, and annotations•The I/O classes•Generics•Lambda expressions•Modules•String handling•The Collections Framework•Networking•Event handling•AWT•Swing •The Concurrent API•The Stream API•Regular expressions•JavaBeans•Servlets•Much, much moreCode examples in the book are available for download at www.OraclePressBooks.com.




Swing: A Beginner's Guide


Book Description

From the world’s bestselling programming author Using the practical pedagogy that has made his other Beginner’s Guides so successful, Herb Schildt provides new Swing programmers with a completely integrated learning package. Perfect for the classroom or self-study, Swing: A Beginner’s Guide delivers the appropriate mix of theory and practical coding. You will be programming as early as Chapter 1.




Java: The Complete Reference, Tenth Edition


Book Description

The Definitive Java Programming Guide Supplement for key JDK 10 new features available from book's Downloads & Resources page at OraclePressBooks.com. Fully updated for Java SE 9, Java: The Complete Reference, Tenth Edition explains how to develop, compile, debug, and run Java programs. Bestselling programming author Herb Schildt covers the entire Java language, including its syntax, keywords, and fundamental programming principles. You'll also find information on key portions of the Java API library, such as I/O, the Collections Framework, the stream library, and the concurrency utilities. Swing, JavaFX, JavaBeans, and servlets are examined and numerous examples demonstrate Java in action. Of course, the new module system added by Java SE 9 is discussed in detail. This Oracle Press resource also offers an introduction to JShell, Java’s new interactive programming tool. Coverage includes: •Data types, variables, arrays, and operators •Control statements •Classes, objects, and methods •Method overloading and overriding •Inheritance •Interfaces and packages •Exception handling •Multithreaded programming •Enumerations, autoboxing, and annotations •The I/O classes •Generics •Lambda expressions •Modules •String handling •The Collections Framework •Networking •Event handling •AWT •Swing and JavaFX •The Concurrent API •The Stream API •Regular expressions •JavaBeans •Servlets •Much, much more Code examples in the book are available for download at www.OraclePressBooks.com. TAG: For a complete list of Oracle Press titles, visit www.OraclePressBooks.com.




Java Cookbook


Book Description

From lambda expressions and JavaFX 8 to new support for network programming and mobile development, Java 8 brings a wealth of changes. This cookbook helps you get up to speed right away with hundreds of hands-on recipes across a broad range of Java topics. You’ll learn useful techniques for everything from debugging and data structures to GUI development and functional programming. Each recipe includes self-contained code solutions that you can freely use, along with a discussion of how and why they work. If you are familiar with Java basics, this cookbook will bolster your knowledge of the language in general and Java 8’s main APIs in particular. Recipes include: Methods for compiling, running, and debugging Manipulating, comparing, and rearranging text Regular expressions for string- and pattern-matching Handling numbers, dates, and times Structuring data with collections, arrays, and other types Object-oriented and functional programming techniques Directory and filesystem operations Working with graphics, audio, and video GUI development, including JavaFX and handlers Network programming on both client and server Database access, using JPA, Hibernate, and JDBC Processing JSON and XML for data storage Multithreading and concurrency