All pastes #768541 Raw Edit

Stuff

public java v1 · immutable
·published 2007-11-10 18:26 UTC
rendered paste body
import java.io.*;import java.util.*;import javax.swing.JOptionPane;/*** Class: 'Oppgave1a'*/public class Oppgave1a {	/**	* Method: 'main'.	*/	public static void main(String[] args)  throws IOException {		/*		* Variable Declarations	 	*/		String fileName;		File f;		FileReader fr;		BufferedReader bf;		/*		* Initiate Variables		*/		f = new File("file.txt");		fileName = "file.txt";		fr = new FileReader(fileName);		bf = new BufferedReader(fr);		String str = bf.readLine();		/*		* Start processing the stream ..		*/		StringTokenizer st = new StringTokenizer(str);		while (st.hasMoreTokens()) {			String fileParseLine = st.nextToken();			System.out.println(fileParseLine);		}	}}