Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 890 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
890
Dung lượng
13,82 MB
Nội dung
[...]... 814 Index 821 xxvi Java All-in-One DeskReferenceForDummies Introduction W elcome to JavaAll-in-OneDeskReferenceFor Dummies, the one Java book that’s designed to replace an entire shelf full of the dull and tedious Java books you’d otherwise have to buy This book contains all the basic and not-so-basic information you need to know to get going with Java programming, starting with... movies.xml file 735 Using a DTD 736 xxiv JavaAll-in-OneDeskReferenceForDummies Processing XML in Two Ways .739 Reading a DOM Document 741 Creating a document builder factory .741 Configuring the document builder factory .742 Creating a document builder and the document 742 Using the getDocument method .743 Reading DOM Nodes 743 Processing... the easy-to-follow ForDummies format, this book helps you get the information you need without laboring to find it JavaAll-in-OneDeskReferenceForDummies is a big book made up of several smaller books — minibooks, if you will Each of these minibooks covers the basics of one key element of programming, such as installing Java and compiling and running programs, or using basic Java statements, or... But close!) So whether you’re just getting started with Java programming or you’re a seasoned pro, you’ve found the right book 2 About This Book About This Book Java All-in-One DeskReferenceForDummies is intended to be a referencefor all the great things (and maybe a few not-so-great things) that you may need to know when you’re writing Java programs You can, of course, buy a huge 1,200-page book... Downside: Java s Weaknesses 18 Java Version Insanity .19 What’s in a Name? 20 Chapter 2: Installing and Using Java Tools 21 Downloading and Installing the Java Development Kit 21 Downloading the JDK 22 Installing the JDK 23 Perusing the JDK folders .23 Setting the path 24 x Java All-in-One DeskReferenceFor Dummies. .. All-in-One DeskReferenceForDummies Using Java s Command-Line Tools .25 Compiling a program 26 Compiling more than one file 26 Using Java compiler options .27 Running a Java program 29 Using the javap command 31 Other Java command-line tools 32 Using Java Documentation 32 JS2E API Docs 33 Java Language Specification .34 Chapter... with forms 625 The InputServlet servlet 626 Using Classes in a Servlet 627 Chapter 3: Using Java Server Pages 633 Understanding Java Server Pages 633 Using Page Directives 635 Using Expressions 636 Using Scriptlets 638 Using Declarations .640 Using Classes 642 xxii JavaAll-in-OneDesk Reference. .. Where to Go from Here 6 Book I: Java Basics .7 Chapter 1: Welcome to Java 9 What Is Java, and Why Is It So Great? 9 Platform independence .10 Object orientation 11 The Java API 12 The Internet 12 Comparing Java to Other Languages 13 Important Features of the Java Language 15 Type checking ... interfaces 299 Using interfaces for callbacks 300 Chapter 6: Using the Object and Class Classes 305 The Mother of All Classes: Object 305 Every object is an Object 305 Using Object as a type .306 Methods of the Object class .307 Primitives aren’t objects 308 xvi Java All-in-One DeskReferenceForDummies The toString Method ... Archiving a package 345 Adding a jar to your classpath 346 Running a program directly from an archive 346 Using JavaDoc to Document Your Classes 347 Adding JavaDoc comments .347 Using the javadoc command 350 Viewing JavaDoc pages 351 Book IV: Strings, Arrays, and Collections 353 Chapter 1: Working with Strings 355 Reviewing . iv
by Doug Lowe
Java
™
ALL-IN-ONE DESK REFERENCE
FOR
DUMmIES
‰
01_58961X ffirs.qxd 3/29/05 3:24 PM Page i
Java
™
All-in-One Desk Reference For Dummies
®
Published. he’s forgotten about. He’s the author of more
than 30 For Dummies books, such as Networking For Dummies (7th Edition),
Networking For Dummies All-in-One Desk