結果 : write a program to print elements of array in java