Synopses & Reviews
You too can be a Java guru! From getting started to website and mobile app-building, here's the scoopThere's a lot to know about Java, the programming language that lets you create all kinds of cool websites and mobile apps. So isn't it great that all the important stuff is in this one handy guide? From what Java is and how to download it to creating interactive sites, working with databases, and writing simple game programs, here's just what you need to know!
Getting started — learn what Java does, download and install it, and work with the command-line tools and TextPad
All the basics — explore programming essentials, object-oriented programming concepts, and special programming techniques
Get in the Swing — find out how Swing lets you write programs that respond when the user clicks a button or types text
Fun with files and databases — use Java's database interface and XML features to work with stored data
Let's play — fiddle with fonts and colors, draw pictures, work with images and media, and create animations
Visit the companion website at www.dummies.com/go/javaaiofd3e for all the code listings in this book plus bonus chapters about Eclipse, JavaBeans, BigDecimals, and using menus.
Open the book and find:
Java's strengths and weaknesses
All about Java API classes
How to work with loops and methods
Tips on working with classes
What to do with strings and arrays
How Swing enables user input
A guide to creating applets
Cool game programming tips
9 books in 1
Java Basics
Programming Basics
Object-Oriented Programming
Strings, Arrays, and Collections
Programming Techniques
Swing
Web Programming
Files and Databases
Fun and Games
Synopsis
Java All-In-One Desk Reference For Dummies 3eis a friendly, comprehensive reference covering both the server and language aspects of Java. Covers syntax basics and more intermediate to advanced programming – all presented in the friendly, plain English Dummies tone. The book is designed not to be a start-to-finish tome on Java but has selected the most critical pieces of information so the reader can get up and running quickly and come back to the book as a reference. New Java 7 features such as closures, enhanced multimedia capabilities and easier syntax will be covered.
Introduction – What’s New in Java 7
Book I: Java Basics
Book II: Programming Basics
Book III: Strings, Arrays, and Collections
Book IV: Programming Techniques
Book V: Swing
Book VI: Web Programming
Book VII: Files and Databases
Book VIII: Fun and Games
Synopsis
Eight convenient minibooks cover just what programmers need to get going quickly with Java 7
- With the newest release of Java, Sun has added more robust functionality to Java's multimedia power; developers need this handy guide to get up to speed
- Rather than trying to be an exhaustive reference on this huge topic, this friendly guide focuses on the vital information that enables developers to get up and running quickly on the new version
- Covers the enhanced multimedia features as well as programming enhancements, Java and XML, Swing, server-side Java, Eclipse, and more in the programming language used by more than 6 million developers
- Minibooks cover Java basics; programming basics; strings, arrays, and collections; programming techniques; Swing; Web programming; files and databases; and a "fun and games" category
Doug Lowe (Fresno, CA) is the bestselling author of more than 30 For Dummies books, including Networking For Dummies, 8th Edition (978-0-470-05620-2). He has been writing computer books since the days of COBOL and mainframes.
Synopsis
- Nine minibooks filling more than 800 pages provide the world's five million-plus Java developers with a basic all-in-one programming reference
- Covers the recent release of the Java 2 Platform Standard Edition 5.0 and the new J2SE Development Kit 5.0
- Starts with beginner topics including getting started with Java, using the Java development platform, and Web programming
- Expands into more advanced Java fundamentals such as object-oriented programming, working with arrays and collections, and creating user interfaces with Swing
Synopsis
9 books in 1 your key to success with Java!
Your one-stop guide to the most-used language for application development
There's no question that Java is the popular kid on the block, and knowing Java will definitely boost your reputation as a developer. Here are all the Java essentials packed into one handy resource. Find out how to do everything from basic programming to using regular expressions and creating applets for the Web, all in one place!
Discover how to
- Work with variables and data types
- Use object-oriented programming
- Program for a network
- Create servlets and Java Server Pages
- Read and write XML data
- Develop simple games
Synopsis
Nine handy minibooks cover just what programmers need to get going with Java 7The newest release of Java has more robust functionality to help web and mobile developers get the most ouf of this platform-independent programming language. Like its bestselling previous editions, Java All-in-One For Dummies, 3rd Edition has what you need to get up and running quickly with the new version. Covering the enhanced mobile development and syntax features as well as programming improvements, this guide makes it easy to find what you want and put it to use.
- Focuses on the vital information that enables you to get up and running quickly on the new version
- Covers the enhanced multimedia features as well as programming enhancements, Java and XML, Swing, server-side Java, Eclipse, and more
- Minibooks cover Java basics; programming basics; strings, arrays, and collections; programming techniques; Swing; Web programming; files and databases; and a "fun and games" category
Rather than trying to cover every aspect of this massive topic, Java All-in-One For Dummies, 3rd Edition focuses on the practical information you need to become productive with Java 7 right away.
Synopsis
Nine handy minibooks cover just what programmers need to get going with Java 7The newest release of Java has more robust functionality to help web and mobile developers get the most ouf of this platform-independent programming language. Like its bestselling previous editions, Java All-in-One For Dummies, 3rd Edition has what you need to get up and running quickly with the new version. Covering the enhanced mobile development and syntax features as well as programming improvements, this guide makes it easy to find what you want and put it to use.
- Focuses on the vital information that enables you to get up and running quickly on the new version
- Covers the enhanced multimedia features as well as programming enhancements, Java and XML, Swing, server-side Java, Eclipse, and more
- Minibooks cover Java basics; programming basics; strings, arrays, and collections; programming techniques; Swing; Web programming; files and databases; and a "fun and games" category
Rather than trying to cover every aspect of this massive topic, Java All-in-One For Dummies, 3rd Edition focuses on the practical information you need to become productive with Java 7 right away.
About the Author
Doug Lowehas been writing computer programming books since the guys who invented Java were still in high school. He’s written books on COBOL, Fortran, Visual Basic, for IBM mainframe computers, mid-range systems, PCs, Web programming, and probably a few he’s forgotten about. He’s the author of more than 30 For Dummiesbooks, such as Networking For Dummies(7th Edition), Networking For Dummies All-in-One Desk Reference, PowerPoint 2003 For Dummies, and Internet Explorer 6 For Dummies. He lives in that sunny All-American City Fresno, California, where the motto is, “It’s a sunny, All-American City,” with his wife and the youngest of his three daughters. He’s also one of those obsessive-compulsive decorating nuts who puts up tens of thousands of lights at Christmas and creates computer-controlled Halloween decorations that rival Disney’s Haunted Mansion. Maybe his next book should be Tacky Holiday Decorations For Dummies.
Table of Contents
Introduction 1Book I: Java Basics 7
Chapter 1: Welcome to Java 9
Chapter 2: Installing and Using Java Tools 21
Chapter 3: Working with TextPad 35
Book II: Programming Basics 43
Chapter 1: Java Programming Basics 45
Chapter 2: Working with Variables and Data Types 65
Chapter 3: Working with Numbers and Expressions 97
Chapter 4: Making Choices 125
Chapter 5: Going Around in Circles (Or, Using Loops) 147
Chapter 6: Pulling a Switcheroo 173
Chapter 7: Adding Some Methods to Your Madness 185
Chapter 8: Handling Exceptions 203
Book III: Object-Oriented Programming 223
Chapter 1: Understanding Object-Oriented Programming 225
Chapter 2: Making Your Own Classes 237
Chapter 3: Working with Statics 253
Chapter 4: Using Subclasses and Inheritance 261
Chapter 5: Using Abstract Classes and Interfaces 281
Chapter 6: Using the Object and Class Classes 293
Chapter 7: Packaging and Documenting Your Classes 319
Book IV: Strings, Arrays, and Collections 335
Chapter 1: Working with Strings 337
Chapter 2: Using Arrays 355
Chapter 3: Using the ArrayList Class383
Chapter 4: Using the LinkedList Class 395
Chapter 5: Creating Generic Collection Classes 407
Book V: Programming Techniques 421
Chapter 1: Programming Threads 423
Chapter 2: Network Programming 451
Chapter 3: Using Regular Expressions 475
Chapter 4: Using Recursion 491
Book VI: Swing 505
Chapter 1: Swinging into Swing 507
Chapter 2: Handling Events 523
Chapter 3: Getting Input from the User 541
Chapter 4: Choosing from a List 569
Chapter 5: Using Layout Managers 593
Book VII: Web Programming 615
Chapter 1: Creating Applets 617
Chapter 2: Creating Servlets 625
Chapter 3: Using JavaServer Pages 647
Book VIII: Files and Databases 661
Chapter 1: Working with Files 663
Chapter 2: Working with File Streams 685
Chapter 3: Database for $100, Please 713
Chapter 4: Using JDBC to Connect to a Database 729
Chapter 5: Working with XML 747
Book IX: Fun and Games 765
Chapter 1: Fun with Fonts and Colors 767
Chapter 2: Drawing Shapes 781
Chapter 3: Using Images and Sound 803
Chapter 4: Animation and Game Programming 817
Bonus Chapters on the Companion Web Site .... www.dummies.com/go/javaaiofd3e
Bonus Chapter 1: Using Eclipse
Bonus Chapter 2: Using BigDecimals
Bonus Chapter 3: Twiddling Your Bits
Bonus Chapter 4: Making Menus
Bonus Chapter 5: Using JavaBeans
Index 835