ReadStdIn

This example illustrates how to read from Standard Input. The fireOrURL parameter in LineReader is set to System.in. Note that the model does not complete inferring its types until after the first input is entered and the Enter key is hit. Note also that there is a delay, the user does not see the first input until the second input is entered. However, because it uses java.io.BufferedReader, clicking on the stop button will not stop the execution. To stop the execution, type a Control-D. As WebStart does not have a notion of Stdin, this model will probably not run under WebStart.

ReadStdIn is available in two formats:

See Web Start Help for details.