import java.io.*;
public class DispEven
{
	public static void main (String args[]) 
	{
		try 
  		{
		  	FileInputStream file = new FileInputStream("Even.dat");
		  	DataInputStream data = new DataInputStream(file);
		  	try 
			{
				while (true)
				{
					int in = data.readInt();
					System.out.print(in+" ");
				}
			}
			catch (IOException eof)
			{
				data.close();
			}
   		}
		catch(IOException e)
		{
			System.out.println("Error");
		}
	}
}

Click here to go back.

Our aim is to provide information to the knowledge seekers. 


comments powered by Disqus