Java Reference
In-Depth Information
figure 17.31
Commands for editor
in Exercise 17.19
Command
Function
1
Go to the top.
a
Add text after current line until . on its own line
d
Delete current line.
dr num num
Delete several lines.
f name
Change name of the current file (for next write).
g num
Go to a numbered line.
h
Get help.
i
Like append, but add lines before current line.
m num
Move current line after some other line.
mr num num num
Move several lines as a unit after some other line.
n
Toggle whether line numbers are displayed.
p
Print current line.
pr num num
Print several lines.
q!
Abort without write.
r name
Read and paste another file into the current file.
s text text
Substitute text with other text.
t num
Copy current line to after some other line.
tr num num num
Copy several lines to after some other line.
w
Write file to disk.
x!
Exit with write.
$
Go to the last line.
-
Go up one line.
+
Go down one line.
=
Print current line number.
/ text
Search forward for a pattern.
? text
Search backward for a pattern.
#
Print number of lines and characters in file.
Provide an add method for the ListIterator consistent with the Collec-
tions API specification.
17.20
Provide a set method for the ListIterator consistent with the Collec-
tions API specification.
17.21
Reimplement the standard LinkedList class
a.
17.22
with a header but no tail.
b.
with a tail but no header.
c.
with no header and no tail.
 
 
Search WWH ::




Custom Search