




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Java语言程序设计(双语)(Programming with Java )(学时:50)一、简要说明:« Java语言程序设计(双语)是软件工程、计算机科学与技术及信息类专业的专业选修课;本课程3.0个学分,共50学时,其中上机实验10个学时。二、课程教学目的设置本课程的主要目的是通过对Java语言的语法规则、数据类型、虚拟机、流程控制、类与对象、多态性等内容的讲授,让学生掌握应用Java语言进行程序设计的技能,牢固掌握面向对象程序设计的思想,为进行各种实用程序开发奠定一个良好的基础。同时,该课程采用英文原版教材,以 Java知识的教学为载体,为学生创造一种学习计算机知识的英文环境
2、,使学生能用英语进行程序设计方面的交流,培养学生运用英语进行思维的习惯。该课程也是J2EE与中间件等后续课程的先修课。三、教学基本要求和方法本课程的理论教学部分主要采用课堂讲解及多媒体辅助教学,多媒体包括幻灯片,相关的声像资料及图片资料等。实践教学部分通过上机实验、作品设计和案例编程等方法提高学生实际编程能力。四、课程考核方式本门课程成绩采用百分制计分。作为考试改革试点课程,提高平时成绩在总成绩中的比重,注重平时实践和综合能力的培养。期末笔试成绩拟占总成绩的40%-50%平时实践、综合设计成绩占总成绩的50%-60%采用闭卷笔试、作品设计及平时实践等相结合的多元考核方式。在笔试中注重考核学生思
3、维能力以及知识灵活应用能力,减少记忆知识的考核;在平时实践和作品设计中重点考查学生学以致用和综合思考的能力,并鼓励个性化设计及创新精神。五、授课教材及主要参考书目授课教材:Java语言程序设计基础篇 (英文版 第8版),(原书名:«Introduction to Java Programming ») (美)Y.Daniel Liang著,机械工业出版社,2012.1主要参考书目:Java语言程序设计进阶篇 (英文版 第8版),(美)Y.Daniel Liang著,机械工业出版社,2012«Java大学基础教程(英文影印版,(原书名Small Java How t
4、o Program Sixth Edition »),(美)Harvey M.Deitel,Paul J.Deitel ,电子工业出版社,北京六、教学内容及学时分配(一)理论教学内容(40学时)Chapter 1 Introduction to Computers,Programs,and Java(2 学时)1、目的要求:To review computer basics, programs, and operating systems (§ § 1.2 -1.4).To explore the relationship between Java and the
5、 World Wide Web (§ 1.5).To distinguish the terms API, IDE, and JDK (§ 1.6).To write a s imple Java program (§1.7).§ 1.7).To display output on the console (§ 1.7).To explain the basic syntax of a Java program (To create, compile, and run Java programs (§ 1.8).(GUI) To di
6、splay output using the JOptionPane output dialog boxes (§ 1.9).2、要点(或讲授内容)1.1 Introduction1.2 What Is a Computer?1.3 Programs1.4 Operating Systems1.5 Java, World Wide Web, and Beyond1.6 The Java Language Specification, API, JDK, and IDE1.7 A Simple Java Program1.8 Creating, Compiling, and Execu
7、ting a Java Program1.9 (GUI) Displaying Text in a Message Dialog BoxChapter 2 Elementary Programming ( 2学时)1、目的要求To write Java programs to perform simple calculations (§ 2.2).To obtain input from the console using the Scanner class (§ 2.3).To use identifiers to name variables, constants, m
8、ethods, and classes (§ 2.4).To use variables to store data (§ § 2.5 -2.6).To program with assignment statements and assignment expressions (§ 2.6).To use constants to store permanent data (§ 2.7).To declare Java primitive data types: byte, short, int, long, float, double, an
9、d char(§ § 2.8.1).To use Java operators to write numeric expressions (§ § 2.8.22.8.3).To display current time (§2.9).To use short hand operators (§ 2.10).To cast value of one type to another type (§ 2.11).To compute loan payment (§ 2.12).To repres ent characte
10、rs using the char type (§2.13).To compute monetary changes (§ 2.14).To represent a string using the String type (§ 2.15).To become familiar with Java documentation, programming style, and naming conventions(§ 2.16).To distinguish syntax error s, runtime errors, and logic errors a
11、nd debug errors (§2.17).(GUI) To obtain input using the JOptionPane input dialog boxes (§ 2.18).2、要点(或讲授内容)2.1 Introduction2.2 Writing Simple Programs2.3 Reading Input from the Console2.4 Identifiers2.5 Variables2.6 Assignment Statements and Assignment Expressions2.7 Named Constants2.8 Num
12、eric Data Types and Operations2.9 Problem: Displaying the Current Time2.10 Shorthand Operators2.11 Numeric Type Conversions2.12 Problem: Computing Loan Payments2.13 Character Data Type and Operations2.14 Problem: Counting Monetary Units2.15 The String Type2.16 Programming Style and Documentation2.17
13、 Programming Errors2.18 (GUI) Getting Input from Input DialogsChapter 3 Selections(2 学时)1、目的要求:To declare boolean type and write Boolean expressions using comparison operators ( § 3.2).To program AdditionQuiz using Boolean expressions (§ 3.3).To implement selection control using one-way if
14、 statements (§ 3.4)To program the GuessBirthday game using one- way if statements (§ 3.5).To implement selection control using two-way if statements ( § 3.6).To implement selection control using nested if statements (§ 3.7).To avoid common errors in if statements (§ 3.8).To
15、program using selection statements for a variety of examples (BMI, ComputeTax, SubtractionQuiz) (§3.9 -3.11).To generate random numbers using the m() method (§ 3.9).To combine conditions using logical operators (&&, |, and !) (§ 3.12).To program using selection statements with
16、 combined conditions (LeapYear, Lottery) (§ § 3.13 -3.14).To implement selection control using switch statements ( § 3.15).To write expressions using the conditional operator (§ 3.16).To format output using the .printf method and to format strings using the t method (§ 3.17)
17、.To examine the rules governing operator precedence and associativity (§ 3.18).(GUI) To get user confirmation using confirmation dialogs (§ 3.19).2、要点:3.1 Introduction3.2 boolean Data Type3.3 Problem: A Simple Math Learning Tool3.4 if Statements3.5 Problem: Guessing Birthdays3.6 Two-Way if
18、 Statements3.7 Nested if Statements3.8 Common Errors in Selection Statements3.9 Problem: An Improved Math Learning Tool3.10 Problem: Computing Body Mass Index3.11 Problem: Computing Taxes3.12 Logical Operators3.13 Problem: Determining Leap Year3.14 Problem: Lottery3.15 switch Statements3.16 Conditio
19、nal Expressions3.17 Formatting Console Output3.18 Operator Precedence and Associativity3.19 (GUI) Confirmation DialogsChapter 4 Loops(2 学时)1、 目的要求:To write programs for executing statements repeatedly using a while loop (§ 4.2).To develop a program for GuessNumber and SubtractionQuizLoop (§
20、; 4.2.1).To foll ow the loop design strategy to develop loops (§ 4.2.2).To develop a program for SubtractionQuizLoop (§ 4.2.3).To control a loop with a sentinel value (§ 4.2.3).To obtain large input from a file using input redirection rather than typing from the keyboard ( § 4.2.
21、4).To write loops using do- while statements (§ 4.3).To write loops using for statements (§ 4.4).To discover the similarities and differences of three types of loop statements ( § 4.5).To write nested loops (§ 4.6).To learn the techniques for minimizing numerical errors (§ 4
22、.7).To learn loops from a variety of examples (GCD, FutureTuition, MonteCarloSimulation) (§ 4.8).To implement program control with break and continue (§ 4.9).(GUI) To control a loop with a confirmation dialog (§ 4.10).2、 要点:1.1 Introduction1.2 The whileLoop1.3 The do-while Loop1.4 The
23、 for Loop1.5 Which Loop to Use?1.6 Nested Loops1.7 Minimizing Numeric Errors1.8 Case Studies1.9 Keywords breakand continue1.10 (GUI) Controlling a Loop with a Confirmation DialogChapter 5 Methods (2 学时)1、目的要求:To define methods, invoke methods, and pass arguments to a method (§ 5.2 -5.5).To deve
24、lop reusable code that is modular, easy-to-read, easy-to-debug, and easy-to- maintain. (§ 5.6).To use method overloading and understand ambiguous overloading (§ 5.7).To design and implement overloaded methods (§ 5.8).To determine the scope of variables (§ 5.9).To know how to use
25、the methods in the Math class (§ § 5.10-5.11).To learn the concept of method abstraction (§ 5.12).To design and implement met hods using stepwise refinement (§ 5.12).2、要点:5.1 Introduction5.2 Defining a Method5.3 Calling a Method5.4 void Method Example5.5 Passing Parameters by Val
26、ues5.6 Modularizing Code5.7 Problem: Converting Decimals to Hexadecimals5.8 Overloading Methods5.9 The Scope of Variables5.10 The Math Class5.11 Case Study: Generating Random Characters5.12 Method Abstraction and Stepwise RefinementChapter 6 Single-Dimensional Arrays(1 学时)1、目的要求:To describe why arra
27、ys are necessary in programming( § 6.1).To declare array reference variables and create arrays (§ § 6.2.1 -6.2.2).To initialize the values in an array (§ 6.2.3).To access array elements using indexed variables (§ 6.2.4).To declare, create, and initialize an array using an ar
28、ray initializer ( § 6.2.5).To program common array operations (displaying arrays,summing all elements, finding min andmax elements, random shuffling, shifting elements) (§ 6.2.6).To simplify programming using the for-each loops (§ 6.2.7).To apply arrays in the LottoNumbers and DeckOfC
29、ards problems ( § § 6.3 -6.4).§ 6.66.7).To copy contents from one array to another (§ 6.5).To develop and invoke methods with array arguments and return value (To define a method with variablelength argument list (§ 6.8).To search elements using the linear (§ 6.9.1) or
30、binary (§ 6.9.2) search algorithm.To sort an array using the selection sort (§ 6.10.1)To sort an array using the insertion sort algorithm (§ 6.10.2).To use the methods in the Arrays class (§ 6.11).2、要点:1.1 Introduction1.2 Array Basics1.3 Problem: Lotto Numbers1.4 Problem: Deck of
31、 Cards1.5 Copying Arrays1.6 Passing Arrays to Methods1.7 Returning an Array from a Method1.8 Variable-Length Argument Lists1.9 Searching Arrays1.10 Sorting Arrays1.11 The ArraysChapter 7 Multidimensional Arrays(1 学时)1、目的要求:To give examples of representing data using two-dimensional arrays (§ 7.
32、1).To declare variables for two-dimensional arrays, create arrays,and access array elements ina two-dimensional array using row and column indexes ( § 7.2).To program common operations for two-dimensional arrays (displaying arrays, summing all elements, finding min and max elements, and random
33、shuffling) (§ 7.3).To pass two- dimensional arrays to methods (§ 7.4).To write a program for grading multiple-choice questions using two- dimensional arrays ( § 7.5).To solve the closest-pair problem using two-dimensional arrays (§ 7.6).To check a Sudoku solution using two- dimen
34、sional arrays (§ 7.7).To use multidimensional arrays (§ 7.8).2、要点:7.1 Introduction7.2 Two-Dimensional Array Basics7.3 Processing Two-Dimensional Arrays7.4 Passing Two-Dimensional Arrays to Methods7.5 Problem: Grading a Multiple-Choice Test7.6 Problem: Finding a Closest Pair7.7 Problem: Sud
35、oku7.8 Multidimensional Arrays(2学时)Chapter 8 Objects and Classes1、目的要求:To describe objects and classes, and use classes to model objects (§ 8.2).To use UML graphical notations to describe classes and objects (§ 8.2).To demonstrate defining classes and creating objects (§ 8.3).To creat
36、e objects using constructors (§ 8.4).To access objects via object reference variables (§ 8.5).To define a reference variable using a reference type (§ 8.5.1).To access an object ' s data and methods using the object member access operator (二)(§ 8.5.2)To define data fieldsof r
37、eference types and assign default values for an object ' s data fields(§ 8.5.3).To distinguish between object reference variables and primitive data type variables ( § 8.5.4).To use classes Date, Random, and JFrame in the Java library ( § 8.6).To distinguish between instance and s
38、tatic variables and methods (§ 8.7).To define private data fields with appropriate get and set methods ( § 8.8).To encapsulate data fields to make classes easy to maintain (§ 8.9).To develop methods with object arguments and differentiate between primitive-type argumentsand object- ty
39、pe arguments ( §8.10).To store and process objects in arrays (§8.11).2、要点:8.1 Introduction8.2 Defining Classes for Objects8.3 Example: Defining Classes and Creating Objects8.4 Constructing Objects Using Constructors8.5 Accessing Objects via Reference Variables8.6 Using Classes from the Jav
40、a Library8.7 Static Variables, Constants, and Methods8.8 Visibility Modifiers8.9 Data Field Encapsulation8.10 Passing Objects to Methods8.11 Array of ObjectsChapter 9 Strings and Text I/O(2 学时)1、目的要求:To use the String class to process fixed strings (§ 9.2).To use the Character class to process
41、a single character (§ 9.3).To use the StringBuilder/StringBuffer class to process flexible strings (§ 9.4).To distinguish among the String, StringBuilder, and StringBuffer classes (§ 9.2-9.4).To learn how to pass arguments to the mainmethod from the command line (§ 9.5).To discov
42、er file properties and to delete and rename files using the Fileclass (§ 9.6).To write data to a file using the PrintWriterclass (§ 9.7.1).To read data from a file using the Scannerclass (§ 9.7.2).(GUI) To open files using a dialog box (§ 9.8)2、要点:1.1 Introduction1.2 The String C
43、lass1.3 The Character Class1.4 The StringBuilder /StringBuffer Class1.5 Command-Line Arguments1.6 The File Class1.7 File Input and Output1.8 (GUI) File DialogsChapter 10 Thinking in Objects(2 学时)1、目的要求:To create immutable objects from immutable classes to protect t he contents of objects ( § 10
44、.2).To determine the scope of variables in the context of a class (§ 10.3).To use the keyword this to refer to the calling object itself (§ 10.4).To apply class abstraction to develop software (§ 10.5).To explore the differences between the procedural paradigm and object-oriented para
45、digm (§ 10.6).To develop classes for modeling composition relationships (§ 10.7).To design programs using the object- oriented paradigm (§ § 10.8 -10.10).To design classes that follow the class-designguidelines (§10.11).2、要点:10.1 Introduction10.2 Immutable Objects and Classe
46、s10.3 The Scope of Variables10.4 The this Reference10.5 Class Abstraction and Encapsulation10.6 Object-Oriented Thinking10.7 Object Composition10.8 Designing the Course Class10.9 Designing a Class for Stacks10.10 Designing the GuessDate Class10.11 Class Design GuidelinesChapter 11 Inheritance and Po
47、lymorphism(4 学时)§ 11.2).1、目的要求:To develop a subclass from a superclass through inheritance (To invoke the supe rclass ' s constructors and methods using the super keyword (§ 11.3).To override instance methods in the subclass (§ 11.4).To distinguish differences between overriding a
48、nd overloading (§ 11.5).To explore the toString() method in the Object class (§ 11.6).To discover polymorphism and dynamic binding (§ § 11.7 -11.8).To describe casting and explain why explicit downcasting is necessary (§ 11.9).To explore the equals() method in the Object cla
49、ss (§ 11.10).To store, retrieve, and manipulate objects in an ArrayList( § 11.11).To implement a Stack class using ArrayList (§ 11.12).To restrict access to data and methods to subclasses using the protected visibility modifier (§ 11.13).To prevent class extending and method over
50、riding using the final modifier (§ 11.14).2、要点:11.1 Introduction11.2 Superclasses and Subclasses11.3 Using the superKeyword11.4 Overriding Methods11.5 Overriding vs. Overloading11.6 The Object Class and Its toString()Method11.7 Polymorphism11.8 Dynamic Binding11.9 Casting Objects and the instan
51、ceofOperator11.10 The Object 's equals() Method11.11 The ArrayList Class11.12 A Custom Stack Class11.13 The protected Data and Methods11.14 Preventing Extending and OverridingChapter 12 Gui Basics (2 学时)1、目的要求:To distinguish betwe en Swing and AWT (§ 12.2).To describe the Java GUI API hiera
52、rchy (§ 12.3).To create user interfaces using frames, panels, and simple GUI components (§ 12.4).To understand the role of layout managers (§ 12.5).To use the FlowLayout, GridLayout, and BorderLayout managers to layout components in a container (§12.5).To use JPanel as subcontain
53、ers (§12.7).To specify colors and fonts using the Color and Font classes (§ § 12.7 -12.8).To apply common features such as borders, tool tips, fonts, and colors on Swing components (§ 12.9).To use borders to visually group user-interface components (§12.9).To create image ic
54、ons using the ImageIconclass (§12.10).2、要点:12.1 Introduction12.2 Swing vs. AWT12.3 The Java GUI API12.4 Frames12.5 Layout Managers12.6 Using Panels as Subcontainers12.7 The ColorClass12.8 The Font Class12.9 Common Features of Swing GUI Components12.10 Image IconsChapter 13 Exception Handling (
55、2学时)1、目的要求:To get an overview of exceptions and exception handling (§ 13.2).To explore t he advantages of using exception handling (§ 13.3).To distinguish exception types: Error (fatal) vs. Exception (nonfatal), and checked vs. unchecked ( §13.4).To declare exceptions in a method head
56、er (§ 13.5.1).To throw exceptions in a method (§ 13.5.2).To write a try-catch block to handle exceptions (§ 13.5.3).To explain how an exception is propagated (§ 13.5.3).To use the finally clause in a try-catch block ( §13.6).To use exceptions only for unexpected errors (
57、7; 13.7).To rethrow exceptions in a catch bl ock ( §13.8).To create chained exceptions (§ 13.9).To define custom exception classes (§ 13.10).2、要点:13.1 Introduction13.2 Exception-Handling Overview13.3 Exception-Handling Advantages13.4 Exception Types13.5 More on Exception Handling13.6
58、The finallyClause13.7 When to Use Exceptions13.8 Rethrowing Exceptions13.9 Chained Exceptions13.10 Creating Custom Exception Classes(4学时)Chapter 14 Abstract Classes and Interfaces1、目的要求:To design and use abstract classes (§ 14.2).To process a calen dar using the Calendar and GregorianCalendar c
59、lasses (§ 14.3).To specify common behavior for objects using interfaces (§ 14.4).To define interfaces and define classes that implement interfaces (§ 14.4).To define a natural order using the Comparable interface ( §14.5).To enable objects to listen for action events using the ActionListener interface (§ 14.6).To make objects cloneable using the Cloneable interface (§ 14.7).To explore the similarities and differences between an abstract class and an interface
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 银行贷款纸质合同(2025年版)
- 二零二五年度公对公基础设施建设长期借款合同
- 二零二五年度房屋出租装修改造与智能家居控制系统供应合同
- 二零二五年度商铺合作终止协议书
- 2025年度特色甜品餐馆承包运营协议
- 二零二五年度建筑工人社会保险及福利保障合同
- 2025年度民宿租赁合同(含家具家电配套)
- 2025年度留学签证拒签复申与中介服务合同
- 2025年度租房合同安全事故风险评估与管理协议
- 二零二五年度家居建材销量合作协议模板
- 熔化焊接与热切割作业题库题库(1455道)
- 金属冶炼中的铍冶炼与铍合金生产
- 2025年中国中煤华东分公司招聘笔试参考题库含答案解析
- 铁路运输碳排放分析-洞察分析
- 第16课数据管理与编码(教案)四年级全一册信息技术人教版
- HPV分型检测介绍课件
- 外卖骑手交通安全课件
- 浙江省工贸企业电气隐患排查技术服务规范
- 安全生产法律法规注册安全工程师考试(初级)试题与参考答案(2024年)一
- 《BIS与复合麻醉》课件
- 外墙脚手架施工方案完整版
评论
0/150
提交评论