1. Trang chủ
  2. » Công Nghệ Thông Tin

Java All-In-One Desk Reference for Dummies docx

3,4K 2,7K 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 3.370
Dung lượng 9,18 MB

Nội dung

Table of Contents Back Cover Java All-In-One Desk Reference for Dummies, 2nd Edition Introduction About This Book How to Use This Book How This Book Is Organized Icons Used in This Book Where to Go from Here Book I: Java Basics Chapter 1: Welcome to Java Comparing Java to Other Languages Important Features of the Java Language On the Downside: Java's Weaknesses Java Version Insanity What's in a Name? Chapter 2: Installing and Using Java Tools Using Java's Command-Line Tools Using Java Documentation Chapter 3: Working with TextPad Editing Source Files Compiling a Program Running a Java Program Running an Applet Chapter 4: Using Eclipse Getting Some Perspective on Eclipse Understanding Projects Creating a Simple Project Adding a Class File Running a Program Debugging a Java Program Refactoring Your Code Book II: Programming Basics Chapter 1: Java Programming Basics Dealing with Keywords Working with Statements Working with Blocks Creating Identifiers Crafting Comments Introducing Object-Oriented Programming Importing Java API Classes Chapter 2: Working with Variables and Data Types Initializing Variables Using Final Variables (Constants) Working with Primitive Data Types Using Reference Types Working with Strings Converting and Casting Numeric Data Thinking Inside the Box Understanding Scope Shadowing Variables Printing Data with System.out Getting Input with the Scanner Class Getting Input with the JOptionPane Class Chapter 3: Working with Numbers and Expressions Dividing Integers Combining Operators Using the Unary Plus and Minus Operators Using Increment and Decrement Operators Using the Assignment Operator Using Compound Assignment Operators Using the Math Class Formatting Numbers Weird Things about Java Math Chapter 4: Making Choices Using if Statements Mr. Spock's Favorite Operators (the Logical Ones, of Course) Using the Conditional Operator Comparing Strings Chapter 5: Going Around in Circles (Or, Using Loops) Your Basic while Loop Breaking Out of a Loop Looping Forever Using the continue Statement Validating Input from the User The Famous for Loop Nesting Your Loops Chapter 6: Pulling a Switcheroo A Better Version of the Voting Machine Error Decoder Program Using the switch Statement A Boring Business Example Complete with Flowchart Putting if Statements Inside switch Statements Creating Character Cases Falling through the Cracks Chapter 7: Adding Some Methods to Your Madness The Basics of Making Methods Methods That Return Values Using Methods That Take Parameters Chapter 8: Handling Exceptions Catching Exceptions Handling Exceptions with a Pre-emptive Strike Catching All Exceptions at Once Displaying the Exception Message Using a finally Block Handling Checked Exceptions Throwing Your Own Exceptions Book III: Object-Oriented Programming Chapter 1: Understanding Object-Oriented Programming Understanding Objects The Life Cycle of an Object Designing a Program with Objects Diagramming Classes with UML [...]... Sidebars Java All-In-One Desk Reference For Dummies, 2nd Edition byDoug LoweandBarry Burd John Wiley & Sons 2007 (914 pages) ISBN:9780470124512 Covering everything from Java and XML to Swing, Server-side Java, and Eclipse, this one-stop guide will show you how to do object-oriented programming, create applets for the Web, read and write XML data, and much more Table of Contents Java All-In-One Desk Reference. .. read and write XML data, and much more Table of Contents Java All-In-One Desk Reference for Dummies, 2nd Edition Introduction Book I - Java Basics Chapter 1 - Welcome to Java Installing and Using Java Chapter 2 Tools Chapter 3 - Working with TextPad Chapter 4 - Using Eclipse Book II - Programming Basics Chapter 1 - Java Programming Basics Chapter 2 - Working with Variables and Data Types Chapter 3 -... Applet Creating an HTML Page for an Applet Testing an Applet Chapter 2: Creating Servlets Using Tomcat Creating a Simple Servlet Running a Servlet An Improved HelloWorld Servlet Getting Input from the User Using Classes in a Servlet Chapter 3: Using Java Server Pages Using Page Directives Using Expressions Using Scriptlets Using Declarations Using Classes Chapter 4: Using JavaBeans Looking Over a Sample... Classes in a JAR File Using JavaDoc to Document Your Classes Book IV: Strings, Arrays, and Collections Chapter 1: Working with Strings Using the String Class Using the StringBuilder and StringBuffer Classes Using the CharSequence Interface Chapter 2: Using Arrays Creating Arrays Initializing an Array Using for Loops with Arrays Solving Homework Problems with Arrays Using the Enhanced for Loop Using Arrays... Methods Creating a Lock Threadus Interruptus Chapter 2: Network Programming Getting Information about Internet Hosts Creating Network Server Applications Introducing BART Chapter 3: Using Regular Expressions A Program for Experimenting with Regular Expressions Basic Character Matching Using Regular Expressions in Java Programs Chapter 4: Using Recursion Displaying Directories Writing Your Own Sorting... from the User Chapter 4 - Choosing from a List Chapter 5 - Using Layout Managers Book VII - Web Programming Chapter 1 - Creating Applets Chapter 2 - Creating Servlets Chapter 3 - Using Java Server Pages Chapter 4 - Using JavaBeans Book VIII - Files and Databases Chapter 1 - Working with Files Chapter 2 - Using File Streams ... the Frame OnScreen Using the JPanel Class Using Labels Creating Buttons A Word about the Layout of Components Chapter 2: Handling Events Handling Events The ClickMe Program Using Inner Classes to Listen for Events Adding an Exit Button Catching the WindowClosing Event The ClickMe Program Revisited Chapter 3: Getting Input from the User Using Text Areas Using Check Boxes Using Radio Buttons Using Borders...Chapter 2: Making Your Own Classes Working with Members Getters and Setters Overloading Methods Creating Constructors More Uses for this Using Initializers Chapter 3: Working with Statics Working with Static Fields Using Static Methods Counting Instances Preventing Instances Using Static Initializers Chapter 4: Using Subclasses... Choosing Files in a Swing Application Chapter 2: Using File Streams Understanding Streams Reading Character Streams Writing Character Streams Reading Binary Streams Writing Binary Streams Chapter 3: Database for $100, Please What Is SQL, and How Do You Pronounce It? SQL Statements Creating a SQL Database Querying a Database Updating and Deleting Rows Chapter 4: Using JDBC to Connect to a Database Connecting . Table of Contents Back Cover Java All-In-One Desk Reference for Dummies, 2nd Edition Introduction About This Book How to. Book I: Java Basics Chapter 1: Welcome to Java Comparing Java to Other Languages Important Features of the Java Language On the Downside: Java& apos;s Weaknesses

Ngày đăng: 06/03/2014, 11:20

TỪ KHÓA LIÊN QUAN