Array length

Anonymous Arrays

forex gft The main objective of anonymous arrays is just for temporary usage. We can create an anonymous arrays as follows.
http://www.grecorailings.com/?fartyx=%D8%A7%D9%84%D8%B9%D8%A7%D8%A8-%D8%A8%D9%8A%D8%B9-%D8%A7%D8%B3%D9%87%D9%85&582=79 العاب بيع اسهم Example:

التجارة في الذهب class Test{ public static void main(String arg[]){ System.out.println(sum(new int[]{10,20,30,40})); } public static int sum(int[] a){ int total = 0; for(int i = 0; i< a.length;i++){ total = total + a[i]; } return total; } }