Java the UML way integrating object oriented design and programming Else Lervik instant download
Java the UML way integrating object oriented design and programming Else Lervik instant download
https://ebookultra.com/download/java-the-uml-way-integrating-
object-oriented-design-and-programming-else-lervik/
https://ebookultra.com/download/object-oriented-design-with-uml-and-
java-1st-edition-kenneth-barclay/
https://ebookultra.com/download/object-oriented-software-engineering-
using-uml-patterns-and-java-2nd-edition-bernd-bruegge/
https://ebookultra.com/download/applying-uml-and-patterns-an-
introduction-to-object-oriented-programming-2ed-edition-larmen/
https://ebookultra.com/download/scientific-software-design-the-object-
oriented-way-1st-edition-damian-rouson/
Java Methods Object Oriented Programming and Data
Structures Third AP 3rd AP Edition Maria Litvin
https://ebookultra.com/download/java-methods-object-oriented-
programming-and-data-structures-third-ap-3rd-ap-edition-maria-litvin/
https://ebookultra.com/download/beginning-c-object-oriented-
programming-2nd-edition-dan-clark/
https://ebookultra.com/download/object-oriented-programming-in-c-4th-
edition-e-balagurusamy/
https://ebookultra.com/download/object-oriented-software-development-
using-java-principles-patterns-and-frameworks-2nd-edition-xiaoping-
jia/
Java the UML way integrating object oriented design and
programming Else Lervik Digital Instant Download
Author(s): Else Lervik, Vegard B. Havdal
ISBN(s): 9780470854884, 047085488X
Edition: English language ed
File Details: PDF, 58.13 MB
Year: 2002
Language: english
This page intentionally left blank
Java the UML Way
Integrating Object-Oriented Design and Programming
All Rights Reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by
any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except under the terms of the Copyright,
Designs and Patents Act 1988 or under the terms of a licence issued by the Copyright Licensing Agency Ltd, 90 Tottenham Court
Road, London, UK W1P OLP, without the permission in writing of the Publisher with the exception of any material supplied
specifically for the purpose of being entered and executed on a computer system for exclusive use by the purchaser of the
publication.
Neither the authors nor John Wiley & Sons, Ltd accept any responsibility or liability for loss or damage occasioned to any person
or property through using the material, instructions, methods or ideas contained herein, or acting or refraining from acting as a
result of such use. The authors and publisher expressly disclaim all implied warranties, including merchantability or fitness for
any particular purpose. There will be no duty on the authors or publisher to correct any errors or defects in the software.
Designations used by companies to distinguish their products are often claimed as trademarks. In all instances where John Wiley
& Sons, Ltd is aware of a claim, the product names appear in capital or all capital letters. Readers, however, should contact the
appropriate companies for more complete information regarding trademarks and registration.
A catalogue record for this book is available from the British Library
1 Introduction 1
1.1 Preliminaries for Reading This Book 2
1.2 Contemplating a Computer 3
1.3 Java Applications and Java Applets 5
1.4 JavaScript and JSP 6
1.5 How This Book is Structured 7
1.6 A Small Example Program 9
1.7 Examples of Applets 15
1.8 New Concepts in This Chapter 17
1.9 Review Problems 19
1.10 Programming Problems 20
2 Variables, Data Types, and Expressions 21
2.1 Example 22
2.2 Data and Variables 22
2.3 Algorithms, Programming Errors, and Test Data 26
2.4 Statements, Blocks, and Names 28
2.5 Variables and Constants 30
2.6 Data Types 34
2.7 Assignments and Arithmetical Expressions 40
2.8 Type Conversion 43
2.9 Calculations for Our Renovation Project 45
2.10 New Concepts in This Chapter 47
2.11 Review Problems 49
2.12 Programming Problems 49
3 Using Ready-Made Classes 51
3.1 Objects as Models of Reality 52
3.2 Using Ready-Made Classes 55
3.3 The Random Class 60
3.4 The String Class 63
3.5 Organizing Classes in Packages 70
3.6 Class Methods and Class Constants in the Java Library 71
3.7 Reading Data from the User 73
3.8 New Concepts in This Chapter 77
3.9 Review Problems 79
3.10 Programming Problems 79
4 Constructing Your Own Classes 81
4.1 Creating Classes 82
4.2 Programming a Class 85
4.3 Access Modifiers - Private and Public 91
Contents
16 Threads 499
16.1 Threads in Processes 500
16.2 Dividing Time Between Threads 502
16.3 Example of Threads in Use 503
16.4 Thread States 507
16.5 Communication Between Threads 508
16.6 Locks and Synchronization 510
16.7 More Control: wait(), notify(), and notifyAll() 515
16.8 Peeking at the Threads with JDB 519
16.9 New Concepts in This Chapter 521
16.10 Review Problems 522
16.11 Programming Problem 522
Appendices
A Using Java SDK and WinEdit 699
A.1 SDK 699
A.2 Running Applets 703
A.3 WinEdit 703
B Keywords 705
C Number Systems 707
D The Unicode Character Set 711
E HTML and Applets 713
F Exceptions to the Code Standard 717
References 719
Index 721
This textbook was designed for higher education in technological fields where Java
and object-orientation form the basis of programming education. This book covers
both basic and more advanced programming.
The book assumes a general familiarity with computers, operating systems, and
the most common tools (such as, for example, word processors and browsers).
Readers should be familiar with concepts like "file" and "directory" and know the
difference between internal memory (RAM) and storage (for example, the hard
disk).
A foundation in object-orientation
When using Java as an educational language, it makes sense for readers to deal with
object-oriented ways of thinking as soon as possible. To a large extent, modern
programming consists of using ready-made components and classes. It's possible
to make a Java program that draws geometric figures, displays images, and plays
sound files without using anything more complicated than sequential control
structure. We believe that graphics and graphical user interfaces will motivate
further study into both object-orientation and programming in general, more so
than difficult control structures and textual user interfaces.
Readers will be introduced to the Java API for the first time in chapter 3. We'll
introduce the standard JOptionPane class which makes it possible to create
programs with primitive graphical user interfaces. We'll also use the Random and
String classes. This will teach readers to use ready-made classes and at the same
time provide a general introduction to object-oriented ways of thinking.
Once readers have used ready-made classes, we believe they will want to find out
what these classes look like inside. We devote quite a bit of space to creating our
own classes, a broad and comprehensive topic. In chapter 4, the readers will get to
create their own applets with simple geometrical figures where they can control the
shape, colors, and fonts themselves.
With this as a foundation, more classes follow to demonstrate the need for
selection and loop control structures.
Preface
Software
The software necessary for writing Java programs can be downloaded free from the
Internet. This book builds on the Java 2 SDK. The SDK is available on Sun's Web
pages (http://java.sun.com/). This book explains how the package is used. In
addition, you'll need a good editor. Alternatively, you can use an integrated
development environment, for example JBuilder Foundation, which you can get
from Borland's pages on the Internet (http://www.borland.com/jbuilder/).
To develop dynamic Web pages with JavaServer Pages (chapter 21), the reader
needs a web server. The book gives instructions on installation and use of a free
web server, LiteWebServer from http://www.gefionsoftware.com/.
Teaching aids
The book includes several teaching aids: every chapter starts with the chapter's
learning goals and ends with a list of the new concepts introduced, review
problems, and more involved programming problems. In addition, most
subchapters end with shorter problems, where the reader is encouraged to actively
work with the material that was just covered.
The book's Internet page (see above) includes a set of overheads that go with
each chapter. The overheads are based primarily on the book, but also contain
some examples and figures not found in the book.
Preface
Intermediate topics
This part of the book will prepare readers to make comprehensive programs with
graphical user interfaces. This requires extensive use of the Java API and a thorough
understanding of the concepts in an object-oriented system (such as associations
and generalizations, for example).
Arrays of reference types are essentially different in their structure and behavior
from arrays of primitive data types. Therefore, we've chosen to treat these in a
separate chapter along with the ArrayList class, which is a class that hides
reference arrays with dynamic lengths. For many practical purposes, this class is
better suited than an ordinary array of reference type. Chapter 10 also covers classes
with prepared sort-and-search methods including classes that make it possible to
take a country's character sets into consideration.
Chapter 10 introduces further relationships between objects in the form of
associations. We emphasize a demonstration of the transition from class diagram
to program code.
Random documents with unrelated
content Scribd suggests to you:
Pian alettiin kulettaa haavoitettuja siihen verrattaisesti turvaisaan
paikkaan, missä me oleskelimme; meidän hevosiamme juoksenteli
ympäriinsä tyhjin satuloin; kuormavankkureita vieri ohitsemme, ja
vähittäin ajettiin hajaantumaan pakotettu rykmentti yhä lähemmä
ylänköämme.
Väristys viilsi läpi ruumiini: nyt oli hetki tullut, nyt saatoin tehdä
urostyön, josta minulle oli tuleva kunniaa ja joka oli saattava kaikki
minua ihmettelemään. Olavinpoika istui kankeana kuin kuva
satulassaan, ja antoi tyynesti hevosensa pureskella kauroja kaulaan
köytetystä pussista.
Yhdeksästoista luku.
Kirje. Jatkoa.
Vanha kansanlaulu.
Sillä välin näet kun oikean sivustamme jo heti alussa oli täytynyt
peräytyä, olivat eversti Rosa ja Nassaun kreivi torjuneet keisarin
väen oikean sivustan tekemän rynnäkön. Herttua Bernhard, joka
komensi keskustaa, oli johtanut luokseen oikean sivustamme, joka
jälkijoukossa oli päässyt kokoontumaan ja järjestymään, ja
voitokkaasti ajanut vihollisen vaalipaikalta. Keisarin sotaväki lähti
samassa aukiolle päin, missä tappelu jälleen oli leimahtanut, mutta
jätti melkoisen joukon tornin puolustukseksi, jonka tähden en vielä
uskaltanut nousta vedestä.
Kahdeskymmenes luku.
Kirje. Jatkoa.
Eräänä päivänä, kun ilma oli lämmin ja kirkas, teki minun mieli
lähteä lyhyelle ratsastusretkelle Olavinpojan kanssa. Hevoseni, jota
ystäväni pitkällisen poissaoloni aikana oli huolellisesti hoitanut, tunsi
vielä minut ja hirnahti iloisesti, kun näki minun lähestyvän, mutta
juuri kun tuli kiivetä selkään, rupesi minua niin raukasemaan, ettei
auttanut muu, kuin kääntyä takaisin.
Olavinpoika tuli vasta myöhään illalla tuoden sen tiedon, että koko
sotaväki oli seuraavana päivänä puolenpäivän tienoossa lähtevä
liikkeelle. Hän oli jo pitänyt huolta siitä, että minä saisin matkata
kuormavankkureissa. — "Minä en lähde mukaan", sanoin
Olavinpojalle. — "Et lähde mukaan?" toisti hän oudoksuen, "mihin
aiot sitte ryhtyä?" — "Minä lähden kotia", vastasin, "kotia iällisten
vanhempaini tykö, joidenka luota häpeällä ja tahratuin mainein
karkasin, tahdon astua heidän eteensä kaikessa viheliäisyydessäni ja
antaa ihmisten kaupungissa osottaa minua sormellansa, sen tähden,
että lähdin kotoa heittiönä ja palaan takaisin kerjäläisenä." — "Ei
niin, veljeni", sanoi Olavinpoika, "älä riitele Jumalalasi vastaan, sillä
kuka on tietänyt hänen mielensä ja kuka on ollut hänen
neuvonantajansa? Taivu hänen tahtonsa alle ja usko itsesi hänen
haltuunsa. Sisällinen ääni minulle kuiskaa, että sinä olet vielä häntä
kiittävä." Minä ravistin päätäni ja pyysin häntä vaan toimittamaan,
että eversti myöntäisi minulle eron jo huomenna. "Sinulla on siis tosi
mielessä?" kysyi hän surunvoittoisesti. — "Niin, tosi minulla on
mielessä", sanoin; "kuulin kaikki, mitä välskäri sinulle puhui.
Huomenna erotaan."
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com