چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

COBOL Programmers Swing with Java

E. Reed Doke, Bill C. Hardgrave, Richard A. Johnson

قیمت نهایی

۴۰٬۰۰۰ تومان۴۹٬۰۰۰ تومان۱۸٪ تخفیف
  • تخفیف زمان‌دار−۹٬۰۰۰ تومان

۹٬۰۰۰ تومان صرفه‌جویی نسبت به قیمت اصلی

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

سال انتشار
۲۰۰۴
فرمت
PDF
زبان
انگلیسی
حجم فایل
۳٫۸ مگابایت

دربارهٔ کتاب

In the fast moving world of information technology, Java is now the number 1 programming language. Programmers and developers everywhere need to know Java to keep pace with traditional and web-based application development. COBOL Programmers Swing with Java provides COBOL programmers a clear, easy transition to Java programming by drawing on the numerous similarities between COBOL and Java. The authors introduce the COBOL programmer to the history of Java and object-oriented programming and then dive into the details of the Java syntax, always contrasting them with their parallels in COBOL. A running case study gives the reader an overall view of application development with Java, with increased functionality as new material is presented. This new edition features the development of graphical user interfaces (GUI's) using the latest in Java Swing components. The clear writing style and excellent examples make the book suitable for anyone wanting to learn Java and OO programming, whether they have a background in COBOL or not. Team-kB......Page 1 Contents......Page 9 Introduction......Page 17 Objectives......Page 19 History and Overview of Java......Page 20 The Popularity of Java......Page 22 Java Is Simple......Page 24 Java Is Object-Oriented......Page 25 Java Is Portable......Page 26 Will Java Replace COBOL?......Page 28 How to Use This Book......Page 32 Summary of Key Points in Chapter 1......Page 34 Bibliography......Page 35 Objectives......Page 37 History of OO......Page 38 Objects......Page 40 Classes......Page 41 Diagramming Classes and Objects......Page 42 Class Relationships......Page 44 Inheritance......Page 45 Aggregation......Page 48 Association......Page 50 Object Communication......Page 51 Polymorphism......Page 53 Dynamic Binding......Page 54 Summary of Key Points in Chapter 2......Page 55 Bibliography......Page 56 Objectives......Page 57 A Class Program......Page 58 Listing 3.1: Customer.java......Page 60 Writing Comments in Java......Page 63 Naming Rules and Conventions......Page 65 Creating Objects......Page 66 Listing 3.2: Customer.java......Page 69 Invoking Methods......Page 70 Listing 3.3: CustomerProcessor.java......Page 72 Listing 3.4: Account.java......Page 74 Listing 3.5: CheckingAccount.java......Page 76 Listing 3.6: AccountProcessor.java......Page 78 Summary of Key Points in Chapter 3......Page 80 Objectives......Page 82 COBOL Picture Clause......Page 83 Defining Java Variables......Page 84 Writing Java Literals......Page 86 The Scope of Variables......Page 87 String Variables......Page 88 Listing 4.1: StringDemo.java......Page 90 Changing Variable Types......Page 92 Listing 4.2: CastDemo.java......Page 93 Variables for Community National Bank......Page 95 Summary of Key Points in Chapter 4......Page 96 Objectives......Page 98 Exceptions......Page 99 Listing 5.1: try-catch Structure......Page 101 Listing 5.2: ArithmeticExceptionDemo.java......Page 102 Custom Exception Classes......Page 103 Listing 5.3: CheckingAccount.java with NSFException......Page 105 Listing 5.4: AccountProcessor.java with try-catch......Page 107 A Review of Primitive Data Types......Page 108 Wrapper Classes......Page 109 Listing 5.5: WrapperDemo.java......Page 112 Arithmetic Operators......Page 114 The Math Class......Page 115 Listing 5.6: MathClassDemo.java......Page 119 The NumberFormat Class......Page 120 Listing 5.7: NumberFormatDemo.java......Page 121 Summary of Key Points in Chapter 5......Page 123 Objectives......Page 124 The if Statement......Page 125 Using the else Clause......Page 128 Nested if Statements......Page 130 Writing Compound Conditions......Page 131 Java's Conditional Operator......Page 132 Condition Names......Page 133 Computing the Service Charge with if Statements......Page 134 Listing 6.1: COBOL Service Charge Computation Using IF Statements......Page 135 Listing 6.2: ComputeServiceCharge method Using if Statements......Page 136 Case Structure: COBOL EVALUATE and Java switch......Page 137 Listing 6.3: COBOL Service Charge Computation Using EVALUATE......Page 139 Listing 6.4: Java Service Charge Computation Using switch......Page 141 Summary of Key Points in Chapter 6......Page 142 Objectives......Page 145 The COBOL PERFORM Statement......Page 146 The Java while Statement......Page 148 Listing 7.1: WhileLoopDemo.java......Page 151 The Java do Statement......Page 153 Listing 7.2: DoLoopDemo.java......Page 155 The Java for Statement......Page 156 Listing 7.3: ForLoopDemo.java......Page 158 Nested Loops......Page 159 Java break and continue Statements......Page 161 Producing a Loan Amortization Schedule......Page 162 Listing 7.4: Amortizer.java......Page 163 Summary of Key Points in Chapter 7......Page 165 Objectives......Page 167 Declaring One-Dimensional Arrays......Page 168 Populating One-Dimensional Arrays......Page 171 Creating String Arrays......Page 173 Listing 8.1: OneDimArrayDemo.java......Page 174 Declaring Two-Dimensional Arrays......Page 176 Populating Two-Dimensional Arrays......Page 178 Listing 8.2: TwoDimArrayDemo.java......Page 179 Passing Arrays as Arguments......Page 182 Searching Arrays......Page 183 Listing 8.3: FindZipCode.java......Page 184 Listing 8.4: ZipCodeProcessor.java......Page 185 Summary of Key Points in Chapter 8......Page 187 Objectives......Page 189 Java's I- O Class Library (java.io)......Page 190 Sequential File I-O......Page 191 Listing 9.1: SequentialFileDemo.java......Page 195 Database Access......Page 197 Listing 9.2: COBOL SQL Example......Page 198 Listing 9.3: DatabaseDemo.java......Page 204 Object Serialization......Page 205 Listing 9.4: ObjectSerializationDemo.java......Page 209 Summary of Key Points in Chapter 9......Page 211 Objectives......Page 213 Java's Swing Components......Page 214 Event-Driven Programming......Page 215 Listing 10.1—CustomerGUIOne.java......Page 217 Listing 10.2: CustomerGUITwo.java......Page 219 JTextField: Adding Text Fields to a Window......Page 221 Listing 10.3—CustomerGUIThree.java......Page 222 Listing 10.4—CustomerGUIFour.java......Page 225 How Java Handles Events......Page 229 Improving the Window Layout......Page 230 Listing 10.5: CustomerGUIFive.java......Page 231 Listing 10.6—CustomerGUISix.java......Page 236 Writing Applets......Page 241 Summary of Key Points in Chapter 10......Page 243 Objectives......Page 245 Developing Object-Oriented Systems......Page 246 OO Methodologies......Page 247 OO Analysis......Page 248 OO Design......Page 249 Three-Tier Design......Page 251 Architecture Issues......Page 262 Performance Issues......Page 263 Summary of Key Points in Chapter 11......Page 264 Bibliography......Page 265 Glossary......Page 267 Index......Page 276 COBOL Programmers Swing with Java 1 Cover 1 Contents 9 Introduction 17 Why You Should Learn Java 19 Objectives 19 History and Overview of Java 20 The Popularity of Java 22 What Makes Java Different? 24 Java Is Simple 24 Java Is Object-Oriented 25 Java Is Portable 26 Will Java Replace COBOL? 28 How to Use This Book 32 Summary of Key Points in Chapter 1 34 Bibliography 35 An Introduction to Object-Oriented Programming 37 Objectives 37 The Community National Bank 38 History of OO 38 Objects 40 Classes 41 Diagramming Classes and Objects 42 Class Relationships 44 Inheritance 45 Aggregation 48 Association 50 Object Communication 51 Polymorphism 53 Dynamic Binding 54 Summary of Key Points in Chapter 2 55 Bibliography 56 Java Structure 57 Objectives 57 A Class Program 58 Listing 3.1: Customer.java 60 Java Column Restrictions 63 Writing Comments in Java 63 Naming Rules and Conventions 65 Creating Objects 66 Listing 3.2: Customer.java 69 Invoking Methods 70 Listing 3.3: CustomerProcessor.java 72 Working with Subclasses 74 Listing 3.4: Account.java 74 Listing 3.5: CheckingAccount.java 76 Listing 3.6: AccountProcessor.java 78 Summary of Key Points in Chapter 3 80 Defining Data 82 Objectives 82 COBOL Picture Clause 83 Defining Java Variables 84 Writing Java Literals 86 The Scope of Variables 87 Defining Java Constants 88 String Variables 88 Listing 4.1: StringDemo.java 90 Changing Variable Types 92 Listing 4.2: CastDemo.java 93 Variables for Community National Bank 95 Summary of Key Points in Chapter 4 96 Computation 98 Objectives 98 Exceptions 99 Listing 5.1: try-catch Structure 101 Listing 5.2: ArithmeticExceptionDemo.java 102 Custom Exception Classes 103 Listing 5.3: CheckingAccount.java with NSFException 105 Listing 5.4: AccountProcessor.java with try-catch 107 A Review of Primitive Data Types 108 Wrapper Classes 109 Listing 5.5: WrapperDemo.java 112 Arithmetic Operators 114 The Math Class 115 Listing 5.6: MathClassDemo.java 119 The NumberFormat Class 120 Listing 5.7: NumberFormatDemo.java 121 Summary of Key Points in Chapter 5 123 Decision Making 124 Objectives 124 Service Charges at Community National Bank 125 The if Statement 125 Using the else Clause 128 Nested if Statements 130 Writing Compound Conditions 131 Java's Conditional Operator 132 Condition Names 133 Computing the Service Charge with if Statements 134 Listing 6.1: COBOL Service Charge Computation Using IF Statements 135 Listing 6.2: ComputeServiceCharge method Using if Statements 136 Case Structure: COBOL EVALUATE and Java switch 137 Computing the Service Charge Using switch 139 Listing 6.3: COBOL Service Charge Computation Using EVALUATE 139 Listing 6.4: Java Service Charge Computation Using switch 141 Summary of Key Points in Chapter 6 142 Loops 145 Objectives 145 Loop Structure 146 The COBOL PERFORM Statement 146 The Java while Statement 148 Listing 7.1: WhileLoopDemo.java 151 The Java do Statement 153 Listing 7.2: DoLoopDemo.java 155 The Java for Statement 156 Listing 7.3: ForLoopDemo.java 158 Nested Loops 159 Java break and continue Statements 161 Producing a Loan Amortization Schedule 162 Listing 7.4: Amortizer.java 163 Summary of Key Points in Chapter 7 165 Arrays 167 Objectives 167 Declaring One-Dimensional Arrays 168 Populating One-Dimensional Arrays 171 Creating String Arrays 173 Listing 8.1: OneDimArrayDemo.java 174 Declaring Two-Dimensional Arrays 176 Populating Two-Dimensional Arrays 178 Listing 8.2: TwoDimArrayDemo.java 179 Passing Arrays as Arguments 182 Searching Arrays 183 Listing 8.3: FindZipCode.java 184 Listing 8.4: ZipCodeProcessor.java 185 Summary of Key Points in Chapter 8 187 Data Access 189 Objectives 189 Java's I- O Class Library (java.io) 190 Object Persistence 191 Sequential File I-O 191 Listing 9.1: SequentialFileDemo.java 195 Database Access 197 Listing 9.2: COBOL SQL Example 198 Listing 9.3: DatabaseDemo.java 204 Object Serialization 205 Listing 9.4: ObjectSerializationDemo.java 209 Network Access 211 Summary of Key Points in Chapter 9 211 Graphical User Interfaces 213 Objectives 213 Java's Swing Components 214 Event-Driven Programming 215 JFrame: Displaying and Closing a Window 217 Listing 10.1—CustomerGUIOne.java 217 JLabel: Adding Labels to a Window 219 Listing 10.2: CustomerGUITwo.java 219 JTextField: Adding Text Fields to a Window 221 Listing 10.3—CustomerGUIThree.java 222 JButton: Adding Buttons to a Window 225 Listing 10.4—CustomerGUIFour.java 225 How Java Handles Events 229 Improving the Window Layout 230 Listing 10.5: CustomerGUIFive.java 231 Creating Drop-Down Menus 236 Listing 10.6—CustomerGUISix.java 236 Writing Applets 241 Summary of Key Points in Chapter 10 243 Object-Oriented Development Issues 245 Objectives 245 Developing Object-Oriented Systems 246 OO Methodologies 247 OO Analysis 248 OO Design 249 Three-Tier Design 251 Architecture Issues 262 Performance Issues 263 Summary of Key Points in Chapter 11 264 Bibliography 265 Glossary 267 Index 276 Team-kB 1 In the fast-moving world of information technology, Java is now the #1 programming language. Programmers and developers everywhere need to know Java to keep pace with traditional and web-based application development. COBOL Programmers Swing with Java provides COBOL programmers a clear, easy transition to Java programming by drawing on the numerous similarities between COBOL and Java.The authors introduce the COBOL programmer to the history of Java and Object-Oriented programming and then dive into the details of Java syntax, always contrasting it with the parallels in COBOL. A running case study gives the reader an overall view of application development with Java, with increased functionality as new material is presented. This second edition of the acclaimed Java for the COBOL Programmer features the development of graphical user interfaces (GUIs) using the latest in Java Swing components. The clear writing style and excellent examples make the book suitable for anyone wanting to learn Java and OO programming, whether or not they have a background in COBOL. Featuring the development of graphical user interfaces (GUI's) using the latest in Java swing components, this new edition of Java for the COBOL Programmer (Cambridge, 1999) provides COBOL programmers a clear, easy transition to Java programming by drawing on the numerous similarities between COBOL and Java. The authors introduce the COBOL programmer to the history of Java and object-oriented programming and then delve into the details of the Java syntax, always contrasting them with their parallels in COBOL. A running case study permits the reader to have an overall view of application development with Java. First Edition ISBN (Pb): 0-521-65892-6

قیمت نهایی

۴۰٬۰۰۰ تومان