Package | Description |
---|---|
acm.io |
This package includes two classes that simplify I/O operations.
|
acm.program |
This package provides a set of classes that simplify the creation of programs.
|
Modifier and Type | Class and Description |
---|---|
class |
IOConsole
The
IOConsole class makes it easier to interact with
the user using text-based input and output in the style of a
traditional console. |
class |
IODialog
The
IODialog class provides a simple, dialog-based mechanism
for interacting with the user. |
Modifier and Type | Class and Description |
---|---|
class |
ConsoleProgram
This class is a standard subclass of
Program
that installs a console in the window. |
class |
DialogProgram
This class is a standard subclass of
Program
that takes its input from a IODialog object. |
class |
GraphicsProgram
This class is a standard subclass of
Program
whose principal window is used for drawing graphics. |
class |
Program
This class is the superclass for all executable
programs in the
acm.program package. |
Modifier and Type | Method and Description |
---|---|
IOModel |
Program.getInputModel()
Returns the
IOModel used for program input, which will
typically be either the default IOConsole or IODialog object. |
IOModel |
DialogProgram.getInputModel()
Returns the
IOModel used for program input. |
IOModel |
Program.getOutputModel()
Returns the
IOModel used for program output, which will
typically be either the default IOConsole or IODialog object. |
IOModel |
DialogProgram.getOutputModel()
Returns the
IOModel used for program output. |