注冊(cè) | 登錄讀書好,好讀書,讀好書!
讀書網(wǎng)-DuShu.com
當(dāng)前位置: 首頁(yè)出版圖書科學(xué)技術(shù)計(jì)算機(jī)/網(wǎng)絡(luò)軟件與程序設(shè)計(jì)JAVA及其相關(guān)JAVA程序設(shè)計(jì)與問題解決:高級(jí)篇(英文版.第4版)

JAVA程序設(shè)計(jì)與問題解決:高級(jí)篇(英文版.第4版)

JAVA程序設(shè)計(jì)與問題解決:高級(jí)篇(英文版.第4版)

定 價(jià):¥59.00

作 者: (美)薩維奇 著
出版社: 人民郵電出版社
叢編項(xiàng): 圖靈原版計(jì)算機(jī)科學(xué)系列
標(biāo) 簽: Java

ISBN: 9787115152893 出版時(shí)間: 2006-12-01 包裝: 膠版紙
開本: 16 頁(yè)數(shù): 1009 字?jǐn)?shù):  

內(nèi)容簡(jiǎn)介

  本書是國(guó)外高校采用率很高的Java程序設(shè)計(jì)的經(jīng)典教材。書中不但講解Java的知識(shí)還提供了一些編程技巧。書的內(nèi)容包括異常處理、流和文件I/O、動(dòng)態(tài)數(shù)據(jù)結(jié)構(gòu)與泛型、遞歸等高級(jí)主題。本書使用了J2SE 5.0的最新特性,并且包含新的、可選講的圖形編程內(nèi)容和貫穿全書的GUI補(bǔ)充知識(shí)。.本書可作為高等院校計(jì)算機(jī)專業(yè)本科生或研究生Java語(yǔ)言程序設(shè)計(jì)課程的教材,也適合相關(guān)技術(shù)人員作為技術(shù)提高之用。本書是一部享有盛譽(yù)的Java教程,已被全球包括哈佛大學(xué)、普度大學(xué)、得克薩斯大學(xué)奧斯汀分校、密歇根大學(xué)、加州大學(xué)洛杉磯分校等名校在內(nèi)的200多所高校采用為教材。..書中作者在講授Java程序設(shè)計(jì)語(yǔ)言基礎(chǔ)知識(shí)的同時(shí),還將問題求解的技能、編程技巧和良好的編程實(shí)踐融會(huì)其中。流暢易讀的語(yǔ)言,透徹清晰的敘述,精心編排的版式和內(nèi)容,充分體現(xiàn)了作者數(shù)十年計(jì)算機(jī)語(yǔ)言教學(xué)的經(jīng)驗(yàn)和功力。新版覆蓋了Java 5.0,而且包含了可選講的圖形編程內(nèi)容。書中包含豐富的自測(cè)題、編程技巧提示、編程項(xiàng)目和常見編程錯(cuò)誤,而且內(nèi)容組織方式非常靈活,可以根據(jù)實(shí)際教學(xué)需要調(diào)整授課內(nèi)容和講授順序,適合各種教學(xué)方式,也是極好的自學(xué)教程。...

作者簡(jiǎn)介

  作者:Walter SavitchWalter Savitch加州大學(xué)圣迭戈分校退休教授。1960年于加州大學(xué)伯克利分校獲得博士學(xué)位,曾擔(dān)任加州大學(xué)圣迭戈分校計(jì)算機(jī)科學(xué)系教授和認(rèn)知科學(xué)跨學(xué)科博士項(xiàng)目主任。他在復(fù)雜性理論和并行計(jì)算模型方面做出了重要貢獻(xiàn),研究領(lǐng)域還包括形式語(yǔ)言理論、計(jì)算語(yǔ)言學(xué)等。除本書外,他著有一系列編程語(yǔ)言教材,都廣受歡迎,暢銷不衰,被譽(yù)為讀者最多的計(jì)算機(jī)編程語(yǔ)言圖書作者。...

圖書目錄

CHAPTER 8Exception Handling569
Objectives570
Prerequisites570
8.1Basic Exception Handling571
Exceptions in Java571
Predefined Exception Classes583
ArrayIndex0ut0fBoundsException (Alternative Ordering)584
8.2Defining Exception Classes585
Defining Your Own Exception Classes585
Programming Tip: When to Define an Exception Class591
8.3Using Exception Classes596
Declaring Exceptions (Passing the Buck)596
Exceptions That Do Not Need To Be Caught600
The Assertion Error Class (Optional)601
Multiple Throws and Catches601
Programming Tip: Exception Handling and Information Hiding605
Programming Tip: When to Throw an Exception607
The final1y Block (Optional)609
Rethrowing an Exception (Optional)610
Case Study: A Line-0riented Calculator611
8.4Graphics Supplement (Optional)625
Exceptions in GUls625
Programming Example: A JFrame Using Exceptions626
Chapter Summary630
Answers to Self-Test Questions630
Programming Projects635
CHAPTER 9Streams and File I/O641
Objectives642
Prerequisites642
9.1An Overview of Streams and File I/O343
The Concept of a Stream643
Why Use Files for I/0?643
Differences between Text Files and Binary Files643
9.2Text-File I/O645
Text-File Output with PrintWriter645
Text-File Input with BufferedReader656
Programming Example: Reading a File Name from the Keyboard660
The StringTokenizer Class663
The Classes Fi1eReader and File0utputStream667
9.3The Fi1e Class669
Using the File Class669
9.4Basic Binary-File I/O672
Output to Binary Files, Using ObjectOutputStream673
Some Details about write UTF (Optional)678
Reading Input from a Binary File, Using ObjectInputStream679
The E0FException Class685
The Classes Fi1elnputStream and Fi1eOutputStream688
Programming Example: Processing a File of Binary Data689
9.5Object I/O with Object Streams393
Binary I/0 of Class Objects693
The Serializable Interface698
Array Objects in Binary Files699
9.6Graphics Supplement (Optional)701
Programming Example: A JFrame GUI for Manipulating Files701
Chapter Summary707
Answers to Self-Test Questions707
Programming Projects713
CHAPTER 10 Dynamic Data Structures and Generics717
Objectives718
Prerequisites718
10.1 Vectors719
Using Vectors719
Programming Tip: Adding to a Vector726
Parameterized Classes and Generics732
10.2 Linked Data Structures733
Linked Lists733
Inner Classes744
Node Inner Classes745
Iterators746
Programming Tip: Internal and External Iterators759
Exception Handling with Linked Lists759
Variations on a Linked List763
Other Linked Data Structures765
10.3 Generics765
Generic Basics766
Programming Example: A Generic Linked List768
Chapter Summary774
Answers to Self-Test Questions774
Programming Projects783
CHAPTER 11 Recursion787
Objectives788
Prerequisites788
11.1 The Basics of Recursion788
Case Study: Digits to Words789
How Recursion Works794
Recursive versus Iterative Definitions801
Recursive Methods That Return a Value801
11.2 Programming with Recursion806
Programming Tip: Ask Until the User Gets It Right806
Case Study: Binary Search808
Programming Tip: Generalize the Problem812
Programming Example: Merge Sort——A Recursive Sorting Method816
Chapter Summary821
Answers to Self-Test Questions821
Programming Projects823
CHAPTER 12Window Interfaces Using Swing827
Objectives828
Prerequisites828
12.1Background829
Guls——Graphical User Interfaces829
Event-Driven Programming829
12.2Basic Swing Details831
Programming Example: A Simple Window832
More about Window Listeners838
Size Units for Screen Objects840
More on setVisible841
Programming Example: A Better Version of Our First Swing Program843
Programming Example: A Window with Color846
Some Methods of the Class 3 Frame850
Layout Managers853
12.3Buttons and Action Listeners860
Programming Example: Adding Buttons860
Buttons862
Action Listeners and Action Events864
Interfaces869
The Model-View-Controller Pattern871
12.4Container Classes874
The JPanel Class874
12.5The Container Class877
12.6Text I/O for GUIs882
Text Areas and Text Fields882
Programming Example: Labeling a Text Field888
Inputting and Outputting Numbers890
Programming Example: A GUI Adding Machine893
Catching a NumberFormatExcepti on897
Chapter Summary900
Answers to Self-Test Questions901
Programming Projects909
CHAPTER 13Applets and HTML913
Objectives914
Prerequisites914
13.1Applets915
Applet Basics915
Running an Applet918
Programming Example: An Adder Applet918
Adding Icons to an Applet921
13.2Introduction to HTML924
HTML Basics924
Programming Tip: A Simple HTML-Document Outline926
Inserting Hyperlinks926
Displaying a Picture931
Programming Tip: HTML Is a Low-Level Language932
13.3Applets in HTML932
Placing an Applet in an HTML Document932
The Older Applet Class (Optional)935
Applets and Security936
Chapter Summary937
Answers to Self-Test Questions937
Programming Projects938
CHAPTER 14More Swing941
Objectives942
Prerequisites942
14.1Menus942
Programming Example: A GUI with a Menu943
Menu Bars, Menus, and Menu Items943
Nested Menus948
14.2Making GUIs Pretty (and More Functional)950
Adding Icons950
The JScroll Pane Class for Scroll Bars957
Adding Borders963
14.3More Layout Managers969
The Box Layout Manager Class969
Struts and Glue973
Setting the Spacing between Components975
The Box Container Class975
The Card Layout Manager978
14.4Inner Classes984
Helping Classes984
14.5More on Events and Listeners986
The Windowkistener Interface986
Programming Example: Components with Changing Visibility997
Some More Details on Updating a GUI1000
14.6Another Look at the Swing Class Hierarchy1001
Buttons, Menus, and Abstract Buttons1001
Chapter Summary1004
Answers to Self-Test QuestionslOO4
Programming Projects1008

本目錄推薦

掃描二維碼
Copyright ? 讀書網(wǎng) hotzeplotz.com 2005-2020, All Rights Reserved.
鄂ICP備15019699號(hào) 鄂公網(wǎng)安備 42010302001612號(hào)