Skip to Main Content
Essentials of Software Engineering, 2nd Edition
book

Essentials of Software Engineering, 2nd Edition

by Frank Tsui, Orlando Karam
April 2010
Intermediate to advanced content levelIntermediate to advanced
400 pages
12h 44m
English
Jones & Bartlett Learning
Content preview from Essentials of Software Engineering, 2nd Edition
14 CHAPTER 1 Writing a Program
Figure 1.1
Class declaration and
Import statements.
Figure 1.2
The readFromStream
method.
import java.io.*; // for Reader(s), Writer(s),
import java.util.*; // for List, ArrayList, Iterator
public class StringSorter {
ArrayList lines;
public void readFromStream(Reader r) throws
IOException
{
BufferedReader br=new BufferedReader(r);
lines=new ArrayList();
while(true) {
String input=br.readLine();
if(input==null)
break;
lines.add(input);
}
}
1.5.4 Implementation of StringSorter
We will be presenting our implementation followed by the test cases. We are
assuming a certain fundamental background with Java programming,
although familiarity ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Essentials of Software Engineering, 4th Edition

Essentials of Software Engineering, 4th Edition

Frank Tsui, Orlando Karam, Barbara Bernal
Essentials of Software Engineering, 3rd Edition

Essentials of Software Engineering, 3rd Edition

Frank Tsui, Orlando Karam, Barbara Bernal
Essentials of Software Engineering, 5th Edition

Essentials of Software Engineering, 5th Edition

Frank Tsui, Orlando Karam, Barbara Bernal

Publisher Resources

ISBN: 9780763785345