All pastes #1815964 Raw Edit

Anonymous

public java v1 · immutable
#1815964 ·published 2010-02-28 20:18 UTC
rendered paste body
import java.io.*;import java.util.regex.*;public class Reformat{	public static void main (String[] args)	{		try		{			FileInputStream fstream = new FileInputStream("temp.1.html");			DataInputStream in = new DataInputStream(fstream);			BufferedReader br = new BufferedReader(new InputStreamReader(in));			String strLine;			int foo = 1;						/***********************************************************				Pattern alle_neune = Pattern.compile("^([0-9]){9}$");				Matcher wirklich_alle = alle_neune.matcher(line);				if (!wirklich_alle.matches())			***********************************************************/						while ((strLine = br.readLine()) != null)			{				Pattern wasnun = Pattern.compile("e");				Matcher dasnun = wasnun.matcher(strLine);								if (dasnun.matches())				{foo++;}				//System.out.println (strLine);			}			System.out.println(foo);			in.close();		}		catch (Exception e)		{System.err.println("Error: " + e.getMessage());}	}}