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

ivor horton's beginning java 2, jdk 5 edition (2005)

1,5K 151 1

Đ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 1.503
Dung lượng 17,42 MB

Nội dung

[...]... Yourself xxii 491 496 499 50 2 50 7 51 2 51 3 51 7 51 9 51 9 52 3 52 4 52 5 52 5 52 6 52 8 52 9 53 2 53 3 53 3 53 7 53 8 53 8 54 1 Contents Serialization Problems and Complications Resetting an Object Output Stream Summary Exercises 54 2 54 4 54 5 54 6 Chapter 13: Generic Class Types 54 7 What Are Generic Types? Defining a Generic Class Type 54 7 54 8 Implementing a Generic Type Instantiating a Generic Type 55 0 55 1 Using Primitive Type... Summary Exercises Chapter 14: The Collections Framework Understanding the Collections Framework Collections of Objects Sets Sequences Maps Hashing 55 5 55 7 55 9 55 9 56 0 56 0 56 1 56 5 56 5 56 7 56 9 57 1 57 9 58 0 58 2 58 4 58 7 58 8 59 2 59 5 59 8 59 9 600 601 601 602 603 604 6 05 606 xxiii Contents Iterators List Iterators Collection Classes Collection Interfaces Using Vectors Creating a Vector The Capacity and Size of... Writing to a File 451 File Position 453 Using a View Buffer to Load Data into a Byte Buffer 458 xxi Contents Structuring a Method Execution Sequence Normal Execution of a Method Execution When an Exception Is Thrown Execution When an Exception Is Not Caught Nested try Blocks Rethrowing Exceptions Exception Objects The Throwable Class Standard Exceptions 351 352 355 356 357 358 359 359 359 362 Defining... haven’t read any of Ivor Horton’s books before, you are in for a pleasant surprise Ivor s style is very accessible, which makes the content easy to follow and understand I know, because I have read this book from cover to cover This edition of Ivor Horton’s Beginning Java 2, JDK 5 Edition is based on the J2SE 5. 0 platform The J2SE 5. 0 release is one of the most significant updates to the Java platform in... without her Ivor Horton Contents About the Author Foreword Acknowledgments Introduction Chapter 1: Introducing Java What Is Java All About? Features of the Java Language Learning Java Java Programs Learning Java — The Road Ahead The Java Environment Java Program Development Installing the JDK Compiling a Java Program Executing a Java Application Executing an Applet Object-Oriented Programming in Java So... Fixing the Color Menu Check Marks Using Actions The Action Interface Using Actions as Menu Items Defining Action Classes 843 843 844 847 852 854 856 857 858 861 861 862 863 8 65 867 868 870 873 874 8 75 8 75 8 75 876 876 876 876 877 879 882 883 884 893 8 95 896 896 902 902 903 9 05 906 xxvii Contents Adding a Toolbar Adding Buttons to a Toolbar Adding Icons Fixing the Menus Adding Tooltips Disabling Actions Summary... Shift Operations Methods for Bitwise Operations Variables with a Fixed Set of Integer Values Boolean Variables Operator Precedence Program Comments Documentation Comments xiv 45 46 48 49 49 50 51 51 52 52 53 54 59 60 60 61 63 65 68 70 74 77 79 80 81 82 Contents Accessing Array Elements Reusing Array Variables Initializing Arrays Using a Utility Method to Initialize an Array Initializing an Array Variable... Varying Length Multidimensional Arrays Arrays of Characters Strings String Literals Creating String Objects Arrays of Strings 138 138 139 140 141 142 143 1 45 149 151 152 152 153 153 155 Operations on Strings 157 Joining Strings Comparing Strings 157 161 Comparing Strings for Equality String Interning Checking the Start and End of a String Sequencing Strings Accessing String Characters Extracting String... Curves Translating Text Moving an Element Rotating Elements Choosing Custom Colors Summary Exercises 996 996 997 997 1002 1003 10 05 1009 1011 1013 1023 1026 1027 1028 1031 1031 1033 10 35 1036 1039 1040 1044 10 45 1048 1 050 1 051 1 052 1 054 1 056 1 058 1060 1062 1063 1063 1064 10 65 1070 1074 1076 1077 xxix Contents Chapter 21: Filing and Printing Documents Serializing the Sketch Implementing the Serializable... Objects Methods Accepting a Variable Number of Arguments Limiting the Types in a Variable Argument List xviii 241 242 243 244 246 246 248 250 251 256 257 262 263 264 2 65 266 266 267 269 269 271 272 273 273 274 2 75 2 75 276 277 279 279 282 286 287 288 289 289 291 2 95 297 Contents Casting Objects When to Cast Objects Identifying Objects More on Enumerations Adding Members to an Enumeration Class 298 300 . 11/23/04 9:27 PM Page ii Ivor Horton’s Beginning Java ™ 2, JDK ™ 5 Edition Ivor Horton 01 _56 8744 ffirs.qxd 11/23/04 9:27 PM Page iii Ivor Horton’s Beginning Java ™ 2, JDK ™ 5 Edition Published by Wiley. document Date: 20 05. 05. 10 13 :55 :51 +08'00'

Ngày đăng: 26/10/2014, 20:35

TỪ KHÓA LIÊN QUAN