Java Cookbook: Problems and Solutions for Java Developers
by: Ian F. Darwin
Print Length 页数: 614 pages
Publisher finelybook 出版社: O’Reilly Media; 4 edition (April 7,2020)
Language 语言: English
ISBN-10: 1492072583
ISBN-13: 9781492072584
Book Description
By finelybook
Java continues to grow and evolve,and this cookbook continues to evolve in tandem. With this guide,you’ll 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 string handling and functional programming to network communication.
Each recipe includes self-contained code solutions that you can freely use,along with a discussion of how and why they work. If you’re familiar with Java basics,this cookbook will bolster your knowledge of the language and its many recent changes,including how to apply them in your day-to-day development. This updated edition covers changes through Java 12 and parts of 13 and 14.
Recipes include:
Methods for compiling,running,and debugging
Packaging Java classes and building applications
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
Input/output,directory,and filesystem operations
Network programming on both client and server
Processing JSON for data interchange
Multithreading and concurrency
Using Java in big data applications
Interfacing Java with other languages
1. Getting Started: Compiling and Running Java
2. Interacting with the Environment
3. Strings and Things
4. Pattern Matching with Regular Expressions
5. Numbers
6. Dates and Times
7. Structuring Data with Java
8. Object-Oriented Techniques
9. Functional Programming Techniques: Functional Interfaces,Streams,and Parallel Collections
10. Input and Output: Reading,Writing,and Directory Tricks
11. Data Science and R
12. Network Clients
13. Server-Side Java
14. Processing JSON Data
15. Packages and Packaging
16. Threaded Java
17. Reflection,or “A Class Named Class”
18. Using Java with Other Languages
Afterword
Java Then and Now
Index