Java 9 Recipes, 3rd Edition.pdf

所需积分/C币:10 2017-09-22 14:17:34 6.36MB PDF

Java 9 Recipes, 3rd Edition.pdf Java 9 Recipes, 3rd Edition.pdf Java 9 Recipes, 3rd Edition.pdf Java 9 Recipes, 3rd Edition.pdf
Java 9 Recipes: A Problem-Solution Approach Josh Juneau Hinckley, llinois, USA ISBN-13(pbk):978-1-4842-1975 ISBN-13(electronic): 978-1-4842-1976-8 DOI10.1007/978-1-4842-1976-8 Library of congress Control Number: 2017943502 Copyright o 2017 by Josh Juneau This work is subject to copyright All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now Known or hereafter developed Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only n an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein Managing Director: Welmoed Spahr Editorial director: Todd green Acquisitions Editor: Jonathan Gennick Development Editor: Laura berenson Technical Reviewer: Vinay Kumar Coordinating Editor: Jill Balzano Copy editor: Brendan Frost Compositor: SPi Global Indexer: SPi global Artist: SPi Global Distributed to the book trade worldwide by Springer Science+ Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201)348-4505, e-mail orders-nyaspringer-sbm.com,orvisitwww.springeronline.com.ApressMedia,LlcisaCaliforniaLlc and the sole member (owner )is Springer Science Business Media Finance Inc (SSBM Finance Inc) SSBM Finance inc is a delaware corporation Forinformationontranslationspleasee-mailrights@apress.com,orvisithttp://www.apress.com/ hts-permissions Apress titles may be purchased in bulk for academic, corporate, or promotional use. e Book versions and licenses are also available for most titles For more information reference our Print and e Book bulk sales webpageathttp://www.apress.com/bulk-sales. Any source code or other supplementary material referenced by the author in this book is available to readersonGithubviathebooksproductpagelocatedatwww.apress.com/9781484219751.Formore detailedinformationpleasevisithttp://www.apress.com/source-code Printed on acid-free paper This book is dedicated to my wife and children Contents at a glance About the author About the technical reviewer ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Acknowledgments ■■■■■■■ xlvi Introduction malix Chapter 1: Getting Started with Java 9 aar ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■ Chapter 2: Java 9 Enhancements aa. 35 Chapter 3: Strings taanmamamaammammmmmmanmammammatannmmammmmn 47 Chapter 4: Numbers and Dates Chapter 5: Object-Oriented Java ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■口■■■■■■■■■■■口■■ 9 Chapter 6: Lambda Expressions a mmeRRBERT g137 Chapter7: Data sources and collecti0ns,,,,…,…,…,,…,159 Chapter 8: Input and output a 195 Chapter 9: Exceptions and logging .ummamammmmmamaammamam 221 Chapter 10: Concurrency.. ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 239 Chapter 11: Debugging and Unit Testing ammammmammmmmam 267 Chapter 12: Unicode Internationalization, and currency codes 285 Chapter 13: Working with Databases mt 305 Chapter 14: JavaFX Fundamentals ■■■■■■■■■■口■■■■■■■■■■■口■■■■■■■■口■■■■■■■■■■■■■■■■■ a355 Chapter 15: Graphics with JavaFX aasnnnasnnnnannnnnn 429 Chapter 16: Media with JavaFX ■■■■ 471 CONTENTS AT A GLANC Chapter 17: Java Web Applications with Javaserver Faces.mE III, 499 Chapter 18: Nashorn and Scripting a m mmEmmRaaI In 529 Chapter19: E-mail,,,…,…,,,,…,,,,,,…,,,,,,,553 Chapter 20: JSoN and XML Processing 563 ■ Chapter21: Networking,,,,,…,,,,,,,,,…,,,,585 Chapter 22: Java Modularity ■■■■■■■■■■口■■■■■■■■■■■口■■■■■■■■口■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 605 ndex m 615 Contents About the author About the technical reviewer ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Acknowledgments n xlvi Introduction malix Chapter 1: Getting Started with Java 9 aar ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■ 1-1. Creating a Development Environment Problem So| ution,………,, How It works 2 1-2. Getting to"Hello, World 3 Prob|em… 3 Solution wwwwwwwww 3 How it works 1-3. Configuring the CLASSPATH 9 Problem Solution How It works 1-4. Organizing code with Packages Problem Solution HowItWorks.www.12 1-5. Declaring Variables and Access Modifiers 14 Problem 14 Solution How It works CONTENTS 1-6. Compiling and Executing from the Command-Line or Terminal Interpreter..n 17 Problem 7 Solution 17 HowItworks.wwwwwwwwwwwww.18 1-7. Developing Within the Interactive sHell.......…,…………,19 Problem 19 Solution 20 How It works 22 1-8. Converting to and from a String.maeno..aeecaenetnn 24 Probler Solution 24 How It works…24 1-9. Passing Arguments via Command-Line Execution 25 Problem Solution 55 How It works 1-10. Executing a Script via the shell.s 27 Prob|em… 27 Solution.wwwwwwwwwwwww.27 How it works 27 1-11. Accepting Input from the Keyboard 28 Prob|em… Solution 28 How It Works 29 1-12. Documenting your Code 30 Probler 30 Solution 30 How It works 31 CONtENTS 1-13. Reading Environment Variables 33 Problem 日面日日自日面日自日日面面日日自日面日日日面日日自日面日日日面日日自日日 Solution How It works. wwww 34 Summary 34 Chapter 2: Java 9 Enhancements mmammammmmamaamma 35 2-1. Avoiding Redundancy in Interface Code 35 Problem Solution 556 How| t Works… 2-2. Creating Modules for Simplifying and Code Reuse......aatananonon, 36 Problem 36 Solution,…………………, 36 How It works 2-3. Easily Retrieving Information on OS Processes 38 Problem wwwwwwwwwwww 38 Solution How it works………… 40 2-4 Handling Errors with Ease Problem 40 Solution.…41 How It works 2-5. Filtering Data Before and After a condition with Streams 42 Problem 42 Solution How It works 日道日日日日面日日面日日日日自日面日日面日道日日日自日面日日面日日日日自日面日自日面日日日日自日面日日面日日自目日自日面日日面日道日日 2-6.DevelopingaConcisehttpclient Problem 344 Solution How It works IX CONTENTS 2-7. Redirecting Platform Logs 44 Problem Solution 44 HoWItWorkS.45 2-8. Utilizing Factory Methods to Create Immutable Collections 45 Problem 45 Solution 45 46 Summary 6 国 Chapter3: Strings.,…,,,mm,47 Compact Strings: Java 9 String Enhancements .mmmannanamamamamamminnnonnon, 47 3-1. obtaining a Subsection of a String . Probler 47 Solution 47 How It works 3-2. Comparing Strings 48 Problem 48 Soluti How It Works 50 3-3. Trimming Whitespace 51 Proble 51 Solution 51 How it works.,,,……… 52 3-4. Changing the Case of a String 52 Problem 52 Soluti 52 How It works 52 3-5 Concatenating Strings 53 Prob|em………… 53 Solution 1.mmmm 53

...展开详情
试读 127P Java 9 Recipes, 3rd Edition.pdf

评论 下载该资源后可以进行评论 1

刘志虎 不错,有中文的就更好了
2018-05-11
回复
img
wchpjx

关注 私信 TA的资源

上传资源赚积分,得勋章
    最新推荐
    Java 9 Recipes, 3rd Edition.pdf 10积分/C币 立即下载
    1/127
    Java 9 Recipes, 3rd Edition.pdf第1页
    Java 9 Recipes, 3rd Edition.pdf第2页
    Java 9 Recipes, 3rd Edition.pdf第3页
    Java 9 Recipes, 3rd Edition.pdf第4页
    Java 9 Recipes, 3rd Edition.pdf第5页
    Java 9 Recipes, 3rd Edition.pdf第6页
    Java 9 Recipes, 3rd Edition.pdf第7页
    Java 9 Recipes, 3rd Edition.pdf第8页
    Java 9 Recipes, 3rd Edition.pdf第9页
    Java 9 Recipes, 3rd Edition.pdf第10页
    Java 9 Recipes, 3rd Edition.pdf第11页
    Java 9 Recipes, 3rd Edition.pdf第12页
    Java 9 Recipes, 3rd Edition.pdf第13页
    Java 9 Recipes, 3rd Edition.pdf第14页
    Java 9 Recipes, 3rd Edition.pdf第15页
    Java 9 Recipes, 3rd Edition.pdf第16页
    Java 9 Recipes, 3rd Edition.pdf第17页
    Java 9 Recipes, 3rd Edition.pdf第18页
    Java 9 Recipes, 3rd Edition.pdf第19页
    Java 9 Recipes, 3rd Edition.pdf第20页

    试读已结束,剩余107页未读...

    10积分/C币 立即下载 >