FileDocCategorySizeDatePackage
ReadStdin.javaAPI DocExample422Sat Nov 25 12:55:30 GMT 2000None

ReadStdin

public class ReadStdin extends Object
Read from Standard Input
author
Ian F. Darwin, ian@darwinsys.com
version
$Id: ReadStdin.java,v 1.2 2000/11/25 17:55:31 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] ap)
Simple test case

		//+
		int b = 0;
		try {
			b = System.in.read();
		} catch (Exception e) {
			System.out.println("Caught " + e);
		}
		System.out.println("Read this data: " + (char)b);
		//-