rendered paste body/** Class FileOp* By Rune Vikestad* E-Mail vikestad@stud.ntnu.no* Web http://folk.ntnu.no/vikestad/* Description IT-1103, Basic Programming (Java), Exercise 6*/import java.io.*;import java.util.*;import javax.swing.JOptionPane;/*** Class: 'FileOp'*/public class FileOp { /** * Method: 'main'. */ public static void main(String[] args) throws IOException { /* * Variable Declarations */ String fileName; File f; FileReader fr; BufferedReader br; String str; StringTokenizer st; /* * Initiate Variables */ f = new File("file.in"); fileName = "file.in"; fr = new FileReader(fileName); br = new BufferedReader(fr); /* * Start processing the stream .. */ str = br.readLine(); while((str = br.readLine) != null) { try { st = new StringTokenizer(str); /* * Print tokens */ while (st.hasMoreTokens()) { String fileParseLine = st.nextToken(); System.out.println(fileParseLine); } } finally { br.close(); } } }}