FileDocCategorySizeDatePackage
ReadStdin.javaAPI DocExample430Sun Feb 08 17:57:30 GMT 2004None

ReadStdin

public class ReadStdin extends Object
Read from Standard Input
author
Ian F. Darwin, http://www.darwinsys.com/
version
$Id: ReadStdin.java,v 1.3 2004/02/08 23:57:29 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);
		//-