Ron Dai

Learn Java with Math

Using Fun Projects and Games

Ron Dai
Seattle, WA, USA
ISBN 978-1-4842-5208-6e-ISBN 978-1-4842-5209-3
© Ron Dai 2019
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 in 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.
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 [email protected], or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.

To Angela, Henry, and Hanson, who always brighten my world

Preface

Congratulations on finding out about this book. I am writing this book to help beginners learn Java programming effectively and with plenty of fun. The book is designed to simplify the complexity and guide the learner to explore and discover things under the hood. I hope the instructions inside this book are intuitive enough for beginners to follow through with hands-on practice.

Having a good foundation of math skills is undoubtedly super powerful when learning programming. In the meantime, it is a good opportunity to practice mathematical problem solving when you study programming. With this motivation, I have included some math practice problems applicable to programming-related concepts.

The more practice you do, the more effectively you will be able to produce results. It requires intensive and extensive problem solving exercises for anyone to master coding skills. In this book, I have included quite a few interesting coding problems for practice. I hope you will have an enjoyable learning experience. Source Code for this book is accessible via the Download Source Code button located at www.apress.com/9781484252086 .

Acknowledgments

I am grateful for my wife, Angela, who has always been supportive of my technical research and teaching work in so many ways. I am also thankful to my two lovely and intelligent sons, Henry and Hanson, who have provided me firsthand feedback and inspired me when I created the idea of this book. I can never forget about what I have learned from Mr. Bangfu Mo and Mr. Jim Pierson, who have provided me with guidance on how to elaborate the creative ideas in a book. I also want to take this opportunity to send my sincere gratitude for their invaluable advice that they have given me in the past. My special thanks go to everyone on the Apress editorial team, who are all world-class professionals.

../images/485723_1_En_BookFrontmatter_Figb_HTML.jpg  (Designed by Hanson Dai)

Table of Contents

Part I: Java Basic1
Part II: Java Intermediate91
Index 227

About the Author and About the Technical Reviewer

About the Author

Ron Dai
../images/485723_1_En_BookFrontmatter_Figc_HTML.jpg

is a software engineer and data scientist at Microsoft. He is also a mathematics and computer science instructor at NWCS (Northwest Chinese School, http://www.nwchinese.org ) located in Bellevue, Washington. He enjoys teaching computer science using math. He has written a book titledCool Math – Scenarios and Strategies, which is available on amazon.com.

 

About the Technical Reviewer

Jeff Friesen
../images/485723_1_En_BookFrontmatter_Figd_HTML.jpg
is a freelance teacher and software developer with an emphasis on Java. In addition to authoringJava I/O, NIO and NIO.2 (Apress, 2015),Java Threads and the Concurrency Utilities (Apress, 2015), and the first edition of this book, Jeff has written numerous articles on Java and other technologies (such as Android) for JavaWorld (JavaWorld.com), informIT (InformIT.com), Java.net, SitePoint (SitePoint.com), and other web sites. Jeff can be contacted via his web site at JavaJeff.ca or via his LinkedIn (LinkedIn.com) profile ( www.linkedin.com/in/javajeff ).
 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.15.94