Lecture 18
24
JFile getSuffix
•
A unix/linux tradition
appends a / when listing
the name
of a Directory
•
We want JFiles to behave
this way, but to use the
windows \ instead
•
Ask a JFile to tell you its suffix
by sending it a getSuffix message
•
getSuffix is abstract in JFile.java
\
users\
eb\
backup\
Foo.java
memo.txt
bill\