Danh mục

giáo trình Java By Example phần 1

Số trang: 66      Loại file: pdf      Dung lượng: 518.13 KB      Lượt xem: 10      Lượt tải: 0    
10.10.2023

Xem trước 7 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Giáo trình CD Giáo trình Learn JaVa By Example dành cho học viên Aptech. Bao gồm lý thuyết, hướng dẫn minh họa cụ thể trên NetBeans . Ngoài ra còn có các bài kiểm tra về lý thuyết của học viên,có soft NetBeans kèm theo, Nói chung là rất dễ học đối với các bạn mới làm quen với JaVa.
Nội dung trích xuất từ tài liệu:
giáo trình Java By Example phần 1JavaBy ExampleClayton Walnum CONTENTSIntroduction Who This Book Is For q Hardware and Software Requirements q Compiling the Programs in This Book q A Word to the Wise q On to the Wonderful World of Java qChapter 1 Java Overview The Java Story q Introducing Java q Java Programs q The Java Developers Kit q Where Is Java? q Example: Installing HotJava q Example: Installing the JDK q Summary q Review Questions q Review Exercises q http://www.ngohaianh.infoChapter 2 Running Java Applets The Sample Java Applets q The Appletviewer Tool r Example: Running TicTacToe r The Animator Applet r The BarChart Applet r Other Demo Applets r Adding Applets to an HTML Document q Optional Attributes for Applets r Applet Parameters r Non-Java Browsers r Example: A Java-Powered Home Page r Summary q Review Questions q Review Exercises qChapter 3 Applets and the Internet Local and Remote Applets q Local Applets r Remote Applets r Clients and Servers q Security q Example: Your Pages on the Web q Summary q Review Questions q Review Exercises qChapter 4 Object-Oriented Programming Concepts From Switches to Objects q An Obvious, Yet Brilliant, Solution q Object-Oriented Programming q http://www.ngohaianh.info Encapsulation r Classes as Data Types r Inheritance r Polymorphism r Example: Encapsulation, Inheritance, and Polymorphism r Summary q Review Questions q Review Exercises qChapter 5 Constants and Variables Constants q Variables q Naming Constants and Variables q Example: Creating Your Own Identifiers q Data Types q Integer Values r Floating-Point Values r Character Values r Boolean Values r Variable Scope q Example: Determining a Variables Scope r Summary q Review Questions q Review Exercises qChapter 6 Simple Input and Output Windows and Graphics q Displaying Text in an Applet q Example: Creating and Running Applet1 r How Applet1 Works r Getting Input from the User q How Applet2 Works r http://www.ngohaianh.info Example: Retrieving text from a TextField control r How Applet3 Works r Displaying Numerical Values q Summary q Review Questions q Review Exercises qChapter 7 Math Operators The Addition Operator q Example: Using the Addition Operator r Example: Multiple Additions r The Subtraction Operator q Example: Using the Subtraction Operator r Example: Multiple Subtractions Using Mixed Data Types r Example: Casting a Result to a Different Data Type r The Multiplication Operator q Example: Multiplication and Data Types r The Division Operator q Example: Integer Versus Floating-Point Division r The Modulo Operator q The Increment Operator q The Decrement Operator q Example: Using Mathematical Calculations in an Applet q How Applet5 Works r The Order of Operations q Example: Order of Operations r Example: More Order of Operations r Example: Still More Order of Operations r Example: One Last Order of Operations r Summary q Review Questions q Review Exercises q http://www.ngohaianh.infoChapter 8 Expressions Types of Expressions q Expressions Within Expressions q Comparison Operators q Example: Using Comparison Operators r Logical Operators q Example: Using Logical Operators r Example: Using Multiple Logical Operators r Example: Combining Different Comparison and Logical Operators r Writing Logical Expressions q Order of Opera ...

Tài liệu được xem nhiều: