exercisesMarch2808 - java UpsideDown input where input...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP202 Instructor: Ladan Mahabadi March 28, 2008 Upside down: Write a class UpsideDown that when given a file as input, inverts the content of the file by storing its last line as the first line of a new file. For instance, if you run
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: java UpsideDown input.txt where input.txt contains Hi This is the second line Bye Your program should store Bye This is the second line Hi In an appropriate output file (say: output.txt )....
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online