public class Concurrency2
extends java.lang.Object
Constructor and Description |
---|
Concurrency2() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Constructs the shared array object, create two Runnable tasks to write to
the shared SimpleArray object, execute the tasks with an ExecutorService
object and prints the print contents of the array when the tasks are
complete.
|
public static void main(java.lang.String[] args)
args
- the command line String[] array arguments