reverse - B boolean eof = false; String m; do{ d m =...

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

View Full Document Right Arrow Icon
import java .io .*; public class reverse extends ArrayQueue{ p public static void main ( String args[] ) { p try { BufferedReader in = new BufferedReader ( new FileReader ("input.txt")); BufferedWriter bf = new BufferedWriter (new FileWriter ("output.txt"));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: B boolean eof = false; String m; do{ d m = in.readLine () ; m if(m !=-1){ i bf.write(m); b } else e eof=true; e }while(!eof); in. close (); bf.close(); b } catch ( IOException e) { System.out.println("error. ."+e.toString()); } } }...
View Full Document

This note was uploaded on 04/26/2010 for the course COMPUTER S Java2 taught by Professor Kwstasmixail during the Spring '10 term at Technical University of Crete.

Ask a homework question - tutors are online