Java Programming

《Java Programming》是2009年清華大學出版社出版的圖書。

基本介紹

  • 書名:Java Programming
  • ISBN:9787302207221
  • 定價:35元
  • 裝幀:平裝
  • 印次:1-1
  • 印刷日期:2009-12-23
圖書簡介,目錄,

圖書簡介

本書使用Java語言講解面向對象的程式開發方法。全書內容共15章,內容包括: Java編程環境;Java組成;表達式、語句和運算符;程式流程控制機制;數組;方法;類和對象;Java應用程式界面(API) ;輸入和輸出;檔案控制;單類繼承;封裝;多態性;抽象;排序、搜尋和遞歸。本書內容深入淺出,循序漸進,對編程過程的每一步均給出詳細的指導,每個範例均提供完整的原始碼,非常適合於沒有編程知識的初學者學習Java語言編程方法。
本書可作為高等院校相關專業本科生Java語言程式設計課程教材,也可作為軟體開發設計人員學習Java面向對象編程方法的自學參考書。

目錄

CHAPTER1TheJavaProgrammingEnvironment
1.1HistoryofJava2
1.2PreparingtoWriteJavaPrograms2
1.3ASimpleJavaProgram3
1.4HowtoRunaJavaProgram?4
1.5CommonlyEncounteredProblems5
Workshops5
Workshop1.1:PreparingtheEnvironmentforJavaProgramming5
Workshop1.2:HowtoRunaJavaProgram?10
Workshop1.3:HowtoCompileandRunaJavaPrograminDOS
Prompt?12
Exercises13
CHAPTER2TheJavaLanguageComponents
2.1Print2NumbersJavaProgram17
2.2TheJavaVocabularyandCharacterSets19
2.3PrimitiveDataTypes19
2.3.1Boolean20
2.3.2Characters20
2.3.3Integers21
2.3.4FloatingPoint22
2.3.5ObjectReferences22
2.3.6String22
2.4Identifiers22
2.5ReservedWords23
2.6Comments24
2.7BasicProgramStructure25
Workshops26
Workshop2.1:UnderstandingtheSequenceofProgramExecution26
Exercises28
ContentsJavaProgrammingCHAPTER3Expressions,StatementsandOperators
3.1ExpressionStatements31
3.1.1TypesofExpressions31
3.1.2AssignmentExpressionStatements31
3.1.3PrefixorPostfixFormsof"++"and"--"Statements32
3.1.4MethodCallStatements32
3.1.5ObjectCreationStatements32
3.2DeclarationStatements33
3.3Operators33
3.3.1ArithmeticOperators34
3.3.2Auto-IncrementandAuto-DecrementOperators35
3.3.3LogicalOperators35
3.3.4RelationalOperators37
3.3.5BitwiseOperators39
3.3.6TheConditionalOperator"?:"40
3.3.7AssignmentOperators41
3.3.8"+"Operator43
3.3.9"."Operator44
3.3.10PrecedenceandAssociativity44
Workshops47
Workshop3.1:EnteringDataforProgramExecution47
Exercises53
CHAPTER4ProgramFlowControls
4.1Sequence56
4.2Selection57
4.2.1Block57
4.2.2TypesofSelectionStatements59
4.3Iteration64
4.3.1ThewhileStatement64
4.3.2Thedo-whileStatement66
4.3.3TheforStatement67
4.3.4TheEnhanced‘for’Statement70
4.4Labels70
4.5ThebreakStatement71
4.6ThecontinueStatement71
Exercises71
CHAPTER5Arrays
5.1Array75
5.1.1DeclaringandCreatinganArray75
5.1.2InitializinganArray77
5.1.3UsingArrays77
5.2Two-dimensionalArrays79
5.2.1One-dimensionalArrayApproach79
5.2.2Two-dimensionalArrayApproach80
5.2.3PopulatingTwo-dimensionalArrays82
5.3ApplyingtheEnhanced‘for’StatementinArrays83
5.4AnApplication:PrintingNumbersDivisibleby384
5.4.1UsingLabelandbreakStatement85
5.4.2UsingcontinueStatement88
Workshops90

相關詞條

熱門詞條

聯絡我們