求數組全部元素和

package tag; /* * 求數組a[]={2,5,8,31,6,8,14}和數組b[]={4,12,10,9,21,6}中全部元素之和 * */ public class Test4 { public static void main(String[] args) { int sum = 0; int[] a = { 2, 5, 8, 31, 6, 8, 14 };
相關文章