Java : an introduction to problem solving & programming = Java : 程序设计与问题解决. V.2, 高级篇...

副标题:无

作   者:Walter Savitch.

分类号:

ISBN:9787115152893

微信扫一扫,移动浏览光盘

简介

本书是国外高校采用率很高的Java程序设计的经典教材。书中不但讲解java的知识还提供了一些编程技巧。书的内容包括异常处理、流和文件I/O、动态数据结构与泛型、递归等高级主题。本书使用了J2SE5.0的最新特性,并且包含新的、可选讲的图形编程内容和贯穿全书的GUI补充知识。 本书可作为高等院校计算机专业本科生或研究生Java语言程序设计课程的教材,也适合相关技术人员作为技术提高之用。

目录

chapter 8 exception handling 569

objectives .570

prerequisites 570

8.1 basic exception handling 571

exceptions in java 571

predefined exception classes 583

arrayindex0ut0fboundsexception (alternative ordering) 584

8.2 defining exception classes 585

defining your own exception classes 585

programming tip: when to define an exception class 591

8.3 using exception classes 596

declaring exceptions (passing the buck) 596

exceptions that do not need to be caught 600

the assertion error class (optional) 601

multiple throws and catches 601

programming tip: exception handling and information hiding 605

programming tip: when to throw an exception 607

the final1y block (optional) 609

rethrowing an exception (optional) 610

case study: a line-0riented calculator 611

.8.4 graphics supplement (optional) 625

exceptions in guls 625

programming example: a j frame using exceptions 626

chapter summary 630

answers to self-test questions 630

programming projects 63 5

chapter 9 streams and file i/o 641

objectives 642

prerequisites 642

9.1 an overview of streams and file i/o t343

the concept of a stream 643

why use files for i/0 ? 643

differences between text files and binary files 643

9.2 text-file i/o 645

text-file output with print writer 645

text-file input with buffe redreader 656

programming example: reading a file name from the keyboard 660

the st ringtokenizer class 663

the classes fi1e reader and fiie0utputstream 667

9.3 the fi1e class 669

using the fiie class 669

9.4 basic binary-file i/o 672

output to binary files, using objectoutputstream 673

some details about write utf (optional) 678

reading input from a binary file, using objectinputst ream 679

the e0fexception class 685

the classes fi1elnputstream and fi1eoutputstream 688

programming example: processing a file of binary data 689

9.5 object i/o with object streams t393

binary i/0 of class objects 693

the serializable interface 698

array objects in binary files 699

9.6 graphics supplement (optional) 701

programming example: a j frame gui for manipulating files 701

chapter summary 707

answers to self-test questions 707

programming projects 713

chapter 10 dynamic data structures and generics 717

objectives 718

prerequisites 718

10.1 vectors 719

using vectors 719

programming tip: adding to a vector 726

parameterized classes and generics 732

10.2 linked data structures 733

linked lists 733

inner classes 744

node inner classes 745

iterators 746

programming tip: internal and external iterators 759

exception handling with linked lists 759

variations on a linked list 763

other linked data structures 765

10.3 generics 765

generic basics 766

programming example: a generic linked list 768

chapter summary 774

answers to self-test questions 774

programming projects 783

chapter 11 recursion 787

objectives 788

prerequisites.. 788

11.1 the basics of recursion 788

case study: digits to words 789

how recursion works 794

recursive versus iterative definitions 801

recursive methods that return a value 801

11.2 programming with recursion 806

programming tip: ask until the user gets it right 806

case study: binary search 808

programming tip: generalize the problem 812

programming example: merge sort---a recursive sorting method 816

chapter summary 821

answers to self-test questions 821

programming projects 823

chapter 12 window interfaces using swing 827

objectives 828

prerequisites 828

12.1 background 829

guls---graphical user interfaces 829

event-driven programming 829

12.2 basic swing details 831

programming example: a simple window 832

more about window listeners 838

size units for screen objects 840

more on setvisible 841

programming example: a better version of our first swing program 843

programming example: a window with color 846

some methods of the class 3 frame 850

layout managers 853

12.3 buttons and action listeners 860

programming example: adding buttons 860

buttons 862

action listeners and action events 864

interfaces 869

the model-view-controller pattern 871

12.4 container classes 874

the 3 paneiclass 874

12.5 the container class 877

12.6 text i/o for guis 882

text areas and text fields 882

programming example: labeling a text field 888

inputting and outputting numbers 890

programming example: a gui adding machine 893

catching a numberformatexcepti on 897

chapter summary 900

answers to self-test questions 901

programming projects 909

chapter 13 applets and html 913

objectives 914

prerequisites 914

13.1 applets 915

applet basics 915

running an applet 918

programming example: an adder applet 918

adding icons to an applet 921

13.2 introduction to html 924

html basics 924

programming tip: a simple html-document outline 926

inserting hyperlinks 926

displaying a picture 931

programming tip: html is a low-level language 932

13.3 applets in html 932

placing an applet in an html document 932

the older applet class (optional) 935

applets and security 936

chapter summary 937

answers to self-test questions 937

programming projects 938

chapter 14 more swing 941

objectives 942

prerequisites 942

14.1 menus 942

programming example: a gui with a menu 943

menu bars, menus, and menu items 943

nested menus 948

14.2 making guis pretty (and more functional) 950

adding icons 950

the j scrol i pane class for scroll bars 957

adding borders 963

14.3 more layout managers 969

the box layout manager class 969

struts and glue 973

setting the spacing between components 975

the box container class 975

the card layout manager 978

14.4 inner classes 984

helping classes 984

14.5 more on events and listeners 986

the windowkistener interface 986

programming example: components with changing visibility 997

some more details on updating a gui 1000

14.6 another look at the swing class hierarchy 1001

buttons, menus, and abstract buttons 1001

chapter summary 1004

answers to self-test questions loo4

programming projects... 1008


已确认勘误

次印刷

页码 勘误内容 提交人 修订印次

Java : an introduction to problem solving & programming = Java : 程序设计与问题解决. V.2, 高级篇...
    • 名称
    • 类型
    • 大小

    光盘服务联系方式: 020-38250260    客服QQ:4006604884

    意见反馈

    14:15

    关闭

    云图客服:

    尊敬的用户,您好!您有任何提议或者建议都可以在此提出来,我们会谦虚地接受任何意见。

    或者您是想咨询:

    用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问

    Video Player
    ×
    Audio Player
    ×
    pdf Player
    ×
    Current View

    看过该图书的还喜欢

    some pictures

    解忧杂货店

    东野圭吾 (作者), 李盈春 (译者)

    loading icon