Java Reference
In-Depth Information
The output from the program is shown here. (The precise output may differ on your com-
puter.)
Let's examine this program in detail. The program creates three classes. The first is
SumArray . It contains the method sumArray( ) , which sums an integer array. The second
class is MyThread , which uses a static object of type SumArray to obtain the sum of an
Search WWH ::




Custom Search